Exemplo n.º 1
0
        public void ShouldNotIncludeLemonByDefault()
        {
            var WW = new WarriorWater();

            Assert.False(WW.Lemon);
        }
        public void ShouldBeAssignableToBaseDrink()
        {
            var x = new WarriorWater();

            Assert.IsAssignableFrom <Drink>(x);
        }
        public void ShouldIncludeIceByDefault()
        {
            var x = new WarriorWater();

            Assert.True(x.Ice);
        }
Exemplo n.º 4
0
        public void ShouldBeIOrderItem()
        {
            WarriorWater ww = new WarriorWater();

            Assert.IsAssignableFrom <IOrderItem>(ww);
        }
        public void ShouldHaveCorrectDisplayName()
        {
            var x = new WarriorWater();

            Assert.Equal("Warrior Water", x.DisplayName);
        }
Exemplo n.º 6
0
        public void ShouldNotIncludeLemonByDefault()
        {
            WarriorWater ww = new WarriorWater();

            Assert.False(ww.Lemon);
        }
Exemplo n.º 7
0
        public void ShouldReturnCorrectDescription()
        {
            WarriorWater ww = new WarriorWater();

            Assert.Equal("It’s water. Just water.", ww.Description);
        }
        public void ShouldDisplayCorrectDescription()
        {
            WarriorWater drink = new WarriorWater();

            Assert.Equal("It’s water. Just water.", drink.Description);
        }
        public void ShouldIncludeIceByDefault()
        {
            WarriorWater drink = new WarriorWater();

            Assert.True(drink.Ice);
        }
Exemplo n.º 10
0
        public void ShouldBeADrink()
        {
            WarriorWater water = new WarriorWater();

            Assert.True(water is Drink);
        }
Exemplo n.º 11
0
        public void ShouldImplementINotifyProperty()
        {
            WarriorWater ww = new WarriorWater();

            Assert.IsAssignableFrom <INotifyPropertyChanged>(ww);
        }
Exemplo n.º 12
0
        public void ShouldBeAnOrderItem()
        {
            WarriorWater water = new WarriorWater();

            Assert.True(water is IOrderItem);
        }
Exemplo n.º 13
0
        public void HasDescription()
        {
            WarriorWater water = new WarriorWater();

            Assert.Equal("It’s water. Just water.", water.Description);
        }
Exemplo n.º 14
0
        public void ShouldBeSmallByDefault()
        {
            var WW = new WarriorWater();

            Assert.True(WW.Size == Size.Small);
        }
Exemplo n.º 15
0
        public void ShouldReturnCorrectPrice()
        {
            WarriorWater ww = new WarriorWater();

            Assert.Equal(0, ww.Price);
        }
        public void ShouldHaveCorrectPrice()
        {
            WarriorWater drink = new WarriorWater();

            Assert.Equal(0.0, drink.Price);
        }
Exemplo n.º 17
0
        public void ShouldIncludeIceByDefault()
        {
            WarriorWater ww = new WarriorWater();

            Assert.True(ww.Ice);
        }
        public void ShouldHaveCorrectCalories()
        {
            WarriorWater drink = new WarriorWater();

            Assert.Equal(0.0, drink.Calories);
        }
Exemplo n.º 19
0
        public void ShouldBeSmallByDefault()
        {
            WarriorWater ww = new WarriorWater();

            Assert.Equal(Size.Small, ww.Size);
        }
        public void ShouldBeAssignableToInterfaceClass()
        {
            WarriorWater drink = new WarriorWater();

            Assert.IsAssignableFrom <IOrderItem>(drink);
        }
Exemplo n.º 21
0
        public void IsAssignableFromINotifyPropertyChanged()
        {
            WarriorWater ww = new WarriorWater();

            Assert.IsAssignableFrom <INotifyPropertyChanged>(ww);
        }
Exemplo n.º 22
0
        public void ShouldHaveCorrectPrice()
        {
            WarriorWater ww = new WarriorWater();

            Assert.Equal(0.00, ww.Price);
        }
Exemplo n.º 23
0
        public void ShouldBeADrink()
        {
            WarriorWater ww = new WarriorWater();

            Assert.IsAssignableFrom <Drink>(ww);
        }
Exemplo n.º 24
0
        public void ShouldHaveCorrectCalories()
        {
            WarriorWater ww = new WarriorWater();

            Assert.Equal((uint)0, ww.Calories);
        }
Exemplo n.º 25
0
        public void ShouldBeAssignableToIOrderItemInterface()
        {
            var x = new WarriorWater();

            Assert.IsAssignableFrom <IOrderItem>(x);
        }
Exemplo n.º 26
0
        public void ChangingSizeNotifiesSizePriceAndCalorieProperties()
        {
            var ww = new WarriorWater();

            ww.Size = Size.Large;

            Assert.PropertyChanged(ww, "Size", () =>
            {
                ww.Size = Size.Small;
            });

            Assert.PropertyChanged(ww, "Size", () =>
            {
                ww.Size = Size.Medium;
            });

            Assert.PropertyChanged(ww, "Size", () =>
            {
                ww.Size = Size.Large;
            });

            Assert.PropertyChanged(ww, "Price", () =>
            {
                ww.Size = Size.Small;
            });

            Assert.PropertyChanged(ww, "Price", () =>
            {
                ww.Size = Size.Medium;
            });

            Assert.PropertyChanged(ww, "Price", () =>
            {
                ww.Size = Size.Large;
            });

            Assert.PropertyChanged(ww, "Calories", () =>
            {
                ww.Size = Size.Small;
            });

            Assert.PropertyChanged(ww, "Calories", () =>
            {
                ww.Size = Size.Medium;
            });

            Assert.PropertyChanged(ww, "Calories", () =>
            {
                ww.Size = Size.Large;
            });

            Assert.PropertyChanged(ww, "Name", () =>
            {
                ww.Size = Size.Small;
            });

            Assert.PropertyChanged(ww, "Name", () =>
            {
                ww.Size = Size.Medium;
            });

            Assert.PropertyChanged(ww, "Name", () =>
            {
                ww.Size = Size.Large;
            });
        }
Exemplo n.º 27
0
        public void ShouldBeAssignableToAbstractDrinkClass()
        {
            var x = new WarriorWater();

            Assert.IsAssignableFrom <Drink>(x);
        }
Exemplo n.º 28
0
        public void NamePropertyGetsToString()
        {
            WarriorWater ww = new WarriorWater();

            Assert.Equal(ww.ToString(), ww.Name);
        }
Exemplo n.º 29
0
        public void ShouldBySmallByDefault()
        {
            var x = new WarriorWater();

            Assert.Equal(Size.Small, x.Size);
        }
Exemplo n.º 30
0
        public void ShouldBeAssignableToIOrderItem()
        {
            var WW = new WarriorWater();

            Assert.IsAssignableFrom <IOrderItem>(WW);
        }