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); }
public MockBotFactory WithMockActionProvider() { PrepareWithActionProvider = true; var mbap = new MockBotActionProvider(); botQueryProvider = mbap; botInteractivityProvider = mbap; MockActionProviderUsed = mbap; return(this); }