Esempio n. 1
0
        public void CreateMiniCooperLuxuryCar(MiniCooperFactory sut)
        {
            var auto = sut.CreateLuxuryCar();

            var actual = Assert.IsAssignableFrom <IAutomobile>(auto);

            const string expected = "Mini Cooper with leather upholstery";

            Assert.Equal(expected, actual.TurnOn());
        }
Esempio n. 2
0
        public void CreateMiniCooperEconomyCar(MiniCooperFactory sut)
        {
            var auto = sut.CreateEconomyCar();

            var actual = Assert.IsAssignableFrom <IAutomobile>(auto);

            const string expected = "Mini Cooper";

            Assert.Equal(expected, actual.TurnOn());
        }
Esempio n. 3
0
 public void BeAssignableFromIAutoFactoryForMiniCooper(MiniCooperFactory sut)
 {
     Assert.IsAssignableFrom <IAutoFactory>(sut);
 }