예제 #1
0
        public void Shift_CallsAddRangeOnRepository_WhenCalled()
        {
            // Arrange
            // Act
            m_Sut.Shift(m_Repository,
                        m_ShiftByPoint);

            // Assert
            m_Repository.Received().AddRange(Arg.Any <IEnumerable <IPoint3D> >());
        }
예제 #2
0
        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());
        }