CoordinatesTests.cs 662 B

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