1234567891011121314151617181920212223242526 |
- using PixiEditor.Models.Position;
- using System.Globalization;
- using Xunit;
- namespace PixiEditorTests.ModelsTests.PositionTests
- {
- public class CoordinatesTests
- {
- [Fact]
- public void TestThatToStringReturnsCorrectFormat()
- {
- Coordinates cords = new Coordinates(5, 5);
- Assert.Equal("5, 5", cords.ToString(CultureInfo.InvariantCulture));
- }
- [Fact]
- public void TestThatNotEqualOperatorWorks()
- {
- Coordinates cords = new Coordinates(5, 5);
- Coordinates cords2 = new Coordinates(6, 4);
- Assert.True(cords != cords2);
- }
- }
- }
|