public void IsSquareTriangle_Should_ReturnFalse_When_TwoDots() { var space = new Refactoring.Space(); space.Add(new[] { new Dot { X = 0, Y = 0, Z = 0 }, new Dot { X = 6, Y = 0, Z = 0 }, }); Assert.False(space.IsSquareTriangle()); }
public void IsSquareTriangle_Should_ReturnFalse_When_ThreeDotsNotWellPositionned() { var space = new Refactoring.Space(); space.Add(new[] { new Dot { X = 1, Y = 4, Z = 0 }, new Dot { X = 3, Y = 7, Z = 0 }, new Dot { X = 9, Y = 8, Z = 0 }, }); Assert.False(space.IsSquareTriangle()); }
public void IsSquareTriangle_Should_ReturnTrue_When_ThreeDotsWellPositionned() { var space = new Refactoring.Space(); space.Add(new[] { new Dot { X = 3, Y = 0, Z = 0 }, new Dot { X = 0, Y = 0, Z = 0 }, new Dot { X = 0, Y = 3, Z = 0 }, }); Assert.True(space.IsSquareTriangle()); }