예제 #1
0
        public void Run_CallShift_ForVectorNotAllCoordinatesZero(
            [Values("-1.0", "0.0", "1.0")] string x,
            [Values("-1.0", "0.0", "1.0")] string y,
            [Values("-1.0", "0.0", "1.0")] string z)
        {
            // Arrange
            m_Arguments.ShiftPointCoordinates =
                string.Format("{0} {1} {2}",
                              x,
                              y,
                              z);

            // Act
            m_Sut.Run(m_Arguments);

            // Assert
            if (x == "0.0" &&
                y == "0.0" &&
                z == "0.0")
            {
                m_Manager.DidNotReceive().Shift(Arg.Any <IPoint3D>());
            }
            else
            {
                m_Manager.Received().Shift(Arg.Any <IPoint3D>());
            }
        }