CoordinatesTests.cs 653 B

1234567891011121314151617181920212223242526
  1. using PixiEditor.Models.Position;
  2. using System.Globalization;
  3. using Xunit;
  4. namespace PixiEditorTests.ModelsTests.PositionTests
  5. {
  6. public class CoordinatesTests
  7. {
  8. [Fact]
  9. public void TestThatToStringReturnsCorrectFormat()
  10. {
  11. Coordinates cords = new Coordinates(5, 5);
  12. Assert.Equal("5, 5", cords.ToString(CultureInfo.InvariantCulture));
  13. }
  14. [Fact]
  15. public void TestThatNotEqualOperatorWorks()
  16. {
  17. Coordinates cords = new Coordinates(5, 5);
  18. Coordinates cords2 = new Coordinates(6, 4);
  19. Assert.True(cords != cords2);
  20. }
  21. }
  22. }