public void GetShiftVector3D_ReturnsPoint_ForValidString() { // Arrange var expected = new Point3D(-1, -11.0, 22.0, -33.0, "Shift Vector"); // Act IPoint3D actual = m_Sut.GetShiftVector3D(); // Assert NUnitHelper.AssertPoint3D(expected, actual); }
public void GetQueryPoint3D_ReturnsPoint_ForValidString() { // Arrange var expected = new Point3D(-1, -1.0, 2.0, -3.0, "Query Point"); // Act IPoint3D actual = m_Sut.GetQueryPoint3D(); // Assert NUnitHelper.AssertPoint3D(expected, actual); }
public void Shift_ShiftsAllPoints_WhenCalled() { // Arrange IEnumerable <Point3D> expected = CreateExpectedShiftedPoints(); PointsRepository repository = CreateAndPopulatePointsRepository(); RepositoryPointsShifter sut = CreateSut(); // Act sut.Shift(repository, m_ShiftByPoint); // Assert NUnitHelper.AssertPoint3Ds(expected, repository.All()); }
public void Run_FindsClosestIds_WhenCalled() { // Arrange var expected = new[] { 1 }; m_Calculator.Ids().Returns(new[] { 1, 2, 3 }); // Act m_Sut.Run(m_Arguments); // Assert NUnitHelper.AssertIntegers(expected, m_Sut.ClosestIds); }