public void Serve_calls_state() { var sharlotkaState = MockRepository.GenerateStub<ICanServe>(); var sharlotka = new Sharlotka(sharlotkaState); sharlotka.Serve(); sharlotkaState.AssertWasCalled(ss => ss.Serve(sharlotka)); }
public void IsReady_calls_state() { var sharlotkaState = MockRepository.GenerateStub<ICanGetIsReady>(); var sharlotka = new Sharlotka(sharlotkaState); sharlotka.GetIsReady(); sharlotkaState.AssertWasCalled(ss => ss.GetIsReady(sharlotka)); }
public void DustWithSugar_calls_state() { var sharlotkaState = MockRepository.GenerateStub<ICanDustWithSugar>(); var sharlotka = new Sharlotka(sharlotkaState); sharlotka.DustWithSugar(); sharlotkaState.AssertWasCalled(ss => ss.DustWithSugar(sharlotka)); }
public void AddBatter_calls_state() { var sharlotkaState = MockRepository.GenerateStub<ICanAddBatter>(); var sharlotka = new Sharlotka(sharlotkaState); sharlotka.AddBatter(); sharlotkaState.AssertWasCalled(ss => ss.AddBatter(sharlotka)); }
public void TurnOut_calls_state() { var sharlotkaState = MockRepository.GenerateStub<ICanTurnOut>(); var sharlotka = new Sharlotka(sharlotkaState); sharlotka.TurnOut(); sharlotkaState.AssertWasCalled(ss => ss.TurnOut(sharlotka)); }
public void SetUp() { _sharlotkaState = MockRepository.GenerateStub<ISharlotkaState>(); _sharlotka = new Sharlotka(_sharlotkaState); }