public void Description_Of_Cheeseburger_With_OnionRings() { Expect.Call(this.sandwichMock.Description).Return("Sandwich description"); this.mocks.ReplayAll(); this.onionRings = new OnionRings(this.sandwichMock); Assert.AreEqual<string>("Sandwich description, Onion Rings", this.onionRings.Description); this.mocks.VerifyAll(); }
public void Calories_Of_Cheeseburger_With_OnionRings() { Expect.Call(this.sandwichMock.Calories()).Return(100); this.mocks.ReplayAll(); this.onionRings = new OnionRings(this.sandwichMock); Assert.AreEqual<int>(240, this.onionRings.Calories()); this.mocks.VerifyAll(); }