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); }
private IEnumerable <int> FindIdsOfClosestPoints([NotNull] IPoint3D fromPoint3D) { m_Calculator.Calculate(fromPoint3D); return(m_Calculator.Ids()); }