Exemplo n.º 1
0
        public void CreateIceTest()
        {
            KievFactory leo = new KievFactory();
            IIce        max = leo.CreateIce();

            Assert.IsTrue(max is KievIce);
            Assert.IsTrue(max.Weight > 50 && max.Weight <= 500);
        }
Exemplo n.º 2
0
        public void CreateCakeTest()
        {
            KievFactory leo = new KievFactory();
            ICake       max = leo.CreateCake();

            Assert.IsTrue(leo is KievFactory);
            Assert.IsTrue(max.Weight > 800);
            Assert.IsTrue(max is KievCake);
            Assert.IsTrue(max.Diameter == 32);
            Assert.AreNotSame(leo, max);
        }