Пример #1
0
        public void SpecialShouldBeCorrectAfterHoldingManyThings()
        {
            VelociWrap vw = new VelociWrap();

            vw.HoldLettuce();
            vw.HoldDressing();
            vw.HoldTortilla();
            vw.HoldCheese();
            Assert.Collection <string>(vw.Special, item =>
            {
                Assert.Equal("Hold Caesar Dressing", item);
            },
                                       item =>
            {
                Assert.Equal("Hold Romaine Lettuce", item);
            },
                                       item =>
            {
                Assert.Equal("Hold Parmesan Cheese", item);
            },
                                       item =>
            {
                Assert.Equal("Hold Flour Tortilla", item);
            });
        }
Пример #2
0
        public void HoldingTortillaShouldNotifySpecialChange()
        {
            VelociWrap vw = new VelociWrap();

            Assert.PropertyChanged(vw, "Special", () =>
            {
                vw.HoldTortilla();
            });
        }