public void Calculate_ReturnsShiftedPoint_WhenShiftedForwardAndBackwards() { // Arrange IPoint3D shifted = m_Sut.Calculate(m_Source, m_ShiftBy); // Act IPoint3D actual = m_Sut.Calculate(shifted, m_ShiftByReverse); // Assert NUnitHelper.AssertPoint3D(m_Source, actual); }
public void Add_AddsPoints_ForNewPoint() { // Arrange Point3D point = CreatePoint(); // Act m_Sut.Add(point); // Assert IPoint3D actual = m_Sut.Get(point.Id); Assert.NotNull(actual); NUnitHelper.AssertPoint3D(point, actual); }
public void Calculate_ReturnsShiftedPoint_WhenCalled() { // Arrange var expected = new Point3D(1, 1.0, 2.0, 3.0, "Source"); // Act IPoint3D actual = m_Sut.Calculate(m_Source, m_ShiftBy); // Assert NUnitHelper.AssertPoint3D(expected, actual); }
public void Add_ReplacesPoint_ForAddingPointWithSameIdTwice() { // Arrange Point3D point = CreatePoint(); Point3D pointOther = CreateOtherPointWithSameId(); // Act m_Sut.Add(point); m_Sut.Add(pointOther); // Assert IPoint3D actual = m_Sut.Get(point.Id); Assert.NotNull(actual); NUnitHelper.AssertPoint3D(pointOther, actual); }