예제 #1
0
        public void MockBot_AccellerateCallsEngineAccelerate()
        {
            var engineHub = new MockBotActionProvider();
            var fac       = new MockBotFactory().CreateBasicMockBot().WithMockActionProvider();
            var sut       = fac.ToBot();

            sut.Accelerate();
            Assert.Equal(1, fac.MockActionProviderUsed.LastSpeedChangeValue);
        }
예제 #2
0
        public MockBotFactory WithMockActionProvider()
        {
            PrepareWithActionProvider = true;

            var mbap = new MockBotActionProvider();

            botQueryProvider         = mbap;
            botInteractivityProvider = mbap;

            MockActionProviderUsed = mbap;

            return(this);
        }