Ejemplo n.º 1
0
        public void OldWay()
        {
            var hamSandwich = SandwichMaker.Make(SandwichNames.HAM_SANDWICH);

            Assert.Equal(SandwichNames.HAM_SANDWICH, hamSandwich.Name);
            Assert.Equal(Breads.MARBLED_RYE, hamSandwich.Bread);
            Assert.Contains(Cheeses.SWISS, hamSandwich.Ingredients);
            Assert.Contains(Meats.HAM, hamSandwich.Ingredients);
            Assert.Contains(Veggies.LETTUCE, hamSandwich.Ingredients);
            Assert.Contains(Condiements.SPICY_MUSTARD, hamSandwich.Condiments);
        }
Ejemplo n.º 2
0
        public void FixtureReliesOnSameness()
        {
            var hamSandwich = SandwichMaker.Make(SandwichNames.HAM_SANDWICH);

            Assert.Same(SandwichMaker.Make(SandwichNames.HAM_SANDWICH), hamSandwich);
        }
Ejemplo n.º 3
0
        public void FixtureWay()
        {
            var hamSandwich = SandwichMaker.Make(SandwichNames.HAM_SANDWICH);

            Assert.Equal(SandwichMaker.Make(SandwichNames.HAM_SANDWICH), hamSandwich);
        }