public void Init()
 {
     this._testRobot = new TestRobot {
         CurrentLocation = new Point(Four, Four)
     };
     this._updateLocationStrategy = new UpdateLocationStrategy();
 }
예제 #2
0
        public void Inspect_InvokesMove_OnRobot()
        {
            var testRobot = new TestRobot();

            this._mockFactory.Setup(x => x.CreateRobots(It.IsAny <EnvironmentSettings>()))
            .Returns(new List <IRobot> {
                testRobot
            });
            var envSettings = new EnvironmentSettings();

            this._building.Inspect(envSettings);
            Assert.IsTrue(testRobot.IsMethodInvoked);
        }