示例#1
0
        void RobotService_Report_Placed_Allowed(int x, int y, Facing f, string expected, [Frozen]Mock<IRobot> mockRobot, 
            RobotService sut)
        {
            mockRobot.SetupRobotFixture(x, y, f, true);

            Assert.True(sut.Report() == expected);
        }
示例#2
0
        void RobotService_Report_NotPlaced_Ignored(int x, int y, Facing f, [Frozen] Mock<IRobot> mockRobot,
            RobotService sut)
        {
            mockRobot.SetupRobotFixture(x, y, f, false);

            Assert.True(sut.Report() == string.Empty);
        }