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); }); }
public void HoldingTortillaShouldNotifySpecialChange() { VelociWrap vw = new VelociWrap(); Assert.PropertyChanged(vw, "Special", () => { vw.HoldTortilla(); }); }