Example #1
0
        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);
        }
Example #2
0
        private IEnumerable <int> FindIdsOfClosestPoints([NotNull] IPoint3D fromPoint3D)
        {
            m_Calculator.Calculate(fromPoint3D);

            return(m_Calculator.Ids());
        }