Example #1
0
        public void ShouldCreateHelicopterToy()
        {
            var helicopter = ToySimpleFactory.GetToy(ToyType.Helicopter);

            Assert.That(helicopter is HelicopterToy);
        }
Example #2
0
        public void ShouldCreateCarToy()
        {
            var car = ToySimpleFactory.GetToy(ToyType.Car);

            Assert.That(car is CarToy);
        }
Example #3
0
        public void ShouldCreateFerryToy()
        {
            var ferry = ToySimpleFactory.GetToy(ToyType.Ferry);

            Assert.That(ferry is FerryToy);
        }