コード例 #1
0
        public void AddingNuggetsShouldNotifyOfPropertyChange(string propertyName)
        {
            PterodactylWings pw = new PterodactylWings();

            Assert.PropertyChanged(pw, propertyName, () =>
            {
                pw.HoldOnion();
            });
        }
コード例 #2
0
        public void ShouldHaveAllSpecial()
        {
            PterodactylWings pw = new PterodactylWings();

            pw.HoldOnion();
            pw.HoldPeppers();
            pw.HoldBun();
            Assert.Contains("Hold Onions", pw.Special);
            Assert.Contains("Hold Peppers", pw.Special);
            Assert.Contains("Hold Bun", pw.Special);
        }