コード例 #1
0
        public void HoldDressingShouldRemoveDressing()
        {
            VelociWrap vw = new VelociWrap();

            vw.HoldDressing();
            Assert.DoesNotContain <string>("Dressing", vw.Ingredients);
        }
コード例 #2
0
        public void HoldDressingShouldChangeSpecial()
        {
            VelociWrap vw = new VelociWrap();

            vw.HoldDressing();
            Assert.Contains <string>("Hold Caesar Dressing", vw.Special);
        }
コード例 #3
0
        public void VelociwrapShouldHaveCorrectSpecialHoldDressing()
        {
            VelociWrap pb = new VelociWrap();

            pb.HoldDressing();
            Assert.Contains <string>("Hold Dressing", pb.Special);
        }
コード例 #4
0
        public void ShouldHaveHoldDressingSpecial()
        {
            VelociWrap wrap = new VelociWrap();

            wrap.HoldDressing();
            string[] special = { "Hold Dressing" };
            Assert.Equal(wrap.Special, special);
        }
コード例 #5
0
        public void HoldingShouldNotifySpecialChange()
        {
            VelociWrap vw = new VelociWrap();

            Assert.PropertyChanged(vw, "Special", () => vw.HoldLettuce());
            Assert.PropertyChanged(vw, "Special", () => vw.HoldDressing());
            Assert.PropertyChanged(vw, "Special", () => vw.HoldCheese());
        }
コード例 #6
0
 public void OnHoldDressing(object sender, RoutedEventArgs args)
 {
     wrap.HoldDressing();
     if (combo != null)
     {
         combo.Entree = wrap;
     }
 }
コード例 #7
0
        public void CheckAllNotifyPropertyChanges(string propertyName)
        {
            VelociWrap vw = new VelociWrap();

            Assert.PropertyChanged(vw, propertyName, () => vw.HoldCheese());
            Assert.PropertyChanged(vw, propertyName, () => vw.HoldLettuce());
            Assert.PropertyChanged(vw, propertyName, () => vw.HoldDressing());
        }
コード例 #8
0
        public void HoldingItemsShouldNotifyOfPropertyChange(string s)
        {
            VelociWrap dn = new VelociWrap();

            Assert.PropertyChanged(dn, s, () => { dn.HoldCheese(); });
            Assert.PropertyChanged(dn, s, () => { dn.HoldDressing(); });
            Assert.PropertyChanged(dn, s, () => { dn.HoldLettuce(); });
        }
コード例 #9
0
        public void VelociWrapPropertyChanges()
        {
            VelociWrap vw = new VelociWrap();

            Assert.PropertyChanged(vw, "Special", () => vw.HoldCheese());
            Assert.PropertyChanged(vw, "Special", () => vw.HoldDressing());
            Assert.PropertyChanged(vw, "Special", () => vw.HoldLettuce());
        }
コード例 #10
0
ファイル: VelociWrapTest.cs プロジェクト: nldreyer/dino-diner
        public void ShouldHaveCorrectSpecialHoldDressing()
        {
            VelociWrap vw = new VelociWrap();

            vw.HoldDressing();
            Assert.Contains("Hold Dressing", vw.Special);
            Assert.Single(vw.Special);
        }
コード例 #11
0
        public void SpecialShouldHoldDressing()
        {
            VelociWrap vw = new VelociWrap();

            vw.HoldDressing();
            Assert.Collection <string>(vw.Special,
                                       item => { Assert.Equal("Hold Dressing", item); });
        }
コード例 #12
0
        public void AddDressingShouldAddDressing()
        {
            VelociWrap vw = new VelociWrap();

            vw.HoldDressing();
            vw.AddDressing();
            Assert.Contains("Ceasar Dressing", vw.Ingredients);
        }
コード例 #13
0
ファイル: VelociWrapTest.cs プロジェクト: MilanMin/dino-diner
        public void SpecialShouldHoldDressing()
        {
            VelociWrap vw = new VelociWrap();

            vw.HoldDressing();
            string[] special = vw.Special;
            Assert.Contains("Hold Dressing", special);
            Assert.Equal <int>(1, special.Length);
        }
コード例 #14
0
        public void HoldDressingShouldNotifyOfSpecialPropertyChange()
        {
            VelociWrap v = new VelociWrap();

            Assert.PropertyChanged(v, "Special", () =>
            {
                v.HoldDressing();
            });
        }
コード例 #15
0
ファイル: VelociWrapTest.cs プロジェクト: daceys/dino-diner
        public void HoldingDressingShouldNotifySpecialChange()
        {
            VelociWrap vc = new VelociWrap();

            Assert.PropertyChanged(vc, "Special", () =>
            {
                vc.HoldDressing();
            });
        }
コード例 #16
0
        public void HoldLettuceAndDressingShouldProvideCorrectSpecial()
        {
            VelociWrap vw = new VelociWrap();

            vw.HoldLettuce();
            vw.HoldDressing();
            Assert.Contains("Hold Lettuce", vw.Special);
            Assert.Contains("Hold Dressing", vw.Special);
        }
コード例 #17
0
        public void HoldDressingShouldNotifyOfPropertyChanged(string propertyName)
        {
            VelociWrap wrap = new VelociWrap();

            Assert.PropertyChanged(wrap, propertyName, () =>
            {
                wrap.HoldDressing();
            });
        }
コード例 #18
0
        public void VelociwrapHoldDressingShouldNotifyPropertyChanged()
        {
            VelociWrap wrap = new VelociWrap();

            Assert.PropertyChanged(wrap, "Special", () =>
            {
                wrap.HoldDressing();
            });
        }
コード例 #19
0
        public void HoldDressingShouldNotifyIngredintsChange()
        {
            VelociWrap wrap = new VelociWrap();

            Assert.PropertyChanged(wrap, "Ingredients", () =>
            {
                wrap.HoldDressing();
            });
        }
コード例 #20
0
        public void HoldDressingShouldNotifySpecialChanged()
        {
            VelociWrap vw = new VelociWrap();

            Assert.PropertyChanged(vw, "Special", () =>
            {
                vw.HoldDressing();
            });
        }
コード例 #21
0
        public void HoldingDressingShouldNotifyIngredientsChange()
        {
            VelociWrap vw = new VelociWrap();

            Assert.PropertyChanged(vw, "Ingredients", () =>
            {
                vw.HoldDressing();
            });
        }
コード例 #22
0
        public void HoldingPeppersShouldSpecialChange()
        {
            VelociWrap vw = new VelociWrap();

            Assert.PropertyChanged(vw, "Special", () =>
            {
                vw.HoldDressing();
            });
        }
コード例 #23
0
        public void HoldingDressingShouldNotifyOfPropertyChange(string propertyName)
        {
            VelociWrap vw = new VelociWrap();

            Assert.PropertyChanged(vw, propertyName, () =>
            {
                vw.HoldDressing();
            });
        }
コード例 #24
0
ファイル: VelociWrapTest.cs プロジェクト: kelcied/dino-diner
        public void HoldDressingShouldNotifyChange(string expected)
        {
            VelociWrap vw = new VelociWrap();

            Assert.PropertyChanged(vw, expected, () =>
            {
                vw.HoldDressing();
            });
        }
コード例 #25
0
        public void VelociWrapShouldNotify()
        {
            VelociWrap v = new VelociWrap();

            Assert.PropertyChanged(v, "Special", () => v.HoldCheese());

            Assert.PropertyChanged(v, "Special", () => v.HoldDressing());

            Assert.PropertyChanged(v, "Special", () => v.HoldLettuce());
        }
コード例 #26
0
        public void HoldDressingShouldBeInSpecial()
        {
            VelociWrap v = new VelociWrap();

            v.HoldDressing();
            Assert.Collection <string>(v.Special, item =>
            {
                Assert.Equal("Hold Dressing", item);
            });
        }
コード例 #27
0
 private void Click_HoldDressing(object sender, RoutedEventArgs e)
 {
     if (sender.Equals(Button_HoldDressing))
     {
         if (DataContext is Order order)
         {
             _wrap.HoldDressing();
         }
     }
 }
コード例 #28
0
ファイル: VelociWrapTest.cs プロジェクト: nalaugh/dino-diner
        public void ShouldhaveholdDressingInSpecail()
        {
            VelociWrap bw = new VelociWrap();

            bw.HoldDressing();
            Assert.Collection <string>(bw.Special, item =>
            {
                Assert.Equal("Hold Dressing", item);
            });
        }
コード例 #29
0
        public void HoldDressingShoukdAddToSpecial()
        {
            VelociWrap vw = new VelociWrap();

            vw.HoldDressing();
            Assert.Collection <string>(vw.Special, item =>
            {
                Assert.Equal("Hold Ceasar Dressing", item);
            });
        }
コード例 #30
0
ファイル: VelociWrapTest.cs プロジェクト: timoth54/dino-diner
        public void SpecialShouldHoldDressingAndCheese()
        {
            VelociWrap vw = new VelociWrap();

            vw.HoldDressing();
            vw.HoldCheese();
            string[] special = vw.Special;
            Assert.Contains("Hold Dressing", special);
            Assert.Contains("Hold Cheese", special);
        }