Exemple #1
0
        public void BuildBigFlashlightOnlyName()
        {
            var pm  = new ProjectManager();
            var big = new BigFlashlight();

            pm.ConstructEmptyWithName(big);
            var bigFlashlight = big.GetFlashlight();

            Assert.AreEqual("Big", bigFlashlight["Name"]);
            Assert.AreEqual(null, bigFlashlight["Led"]);
            Assert.AreEqual(null, bigFlashlight["Host"]);
            Assert.AreEqual(null, bigFlashlight["Driver"]);
            Assert.AreEqual(null, bigFlashlight["Box"]);
        }
Exemple #2
0
        public void PratialBuildBigFlashlight()
        {
            var pm  = new ProjectManager();
            var big = new BigFlashlight();

            pm.PartialConstruct(big);
            var bigFlashlight = big.GetFlashlight();

            Assert.AreEqual("Big", bigFlashlight["Name"]);
            Assert.AreEqual("XHP-70", bigFlashlight["Led"]);
            Assert.AreNotEqual("Big Host", bigFlashlight["Host"]);
            Assert.AreNotEqual("Big Driver", bigFlashlight["Driver"]);
            Assert.AreNotEqual("Big Gift Box", bigFlashlight["Box"]);
        }