Пример #1
0
        public void Description_Of_Cheeseburger_With_Corn()
        {
            Expect.Call(this.sandwichMock.Description).Return("Sandwich description");

            this.mocks.ReplayAll();

            this.corn = new Corn(this.sandwichMock);
            Assert.AreEqual<string>("Sandwich description, Corn", this.corn.Description);

            this.mocks.VerifyAll();
        }
Пример #2
0
        public void Calories_Of_Cheeseburger_With_Corn()
        {
            Expect.Call(this.sandwichMock.Calories()).Return(100);

            this.mocks.ReplayAll();

            this.corn = new Corn(this.sandwichMock);
            Assert.AreEqual<int>(170, this.corn.Calories());

            this.mocks.VerifyAll();
        }