예제 #1
0
        public void WeaponGen_CreateType_Generic()
        {
            var target = new WeaponGenerator();

            var sword = target.CreateType <Sword>();

            Assert.IsTrue(typeof(Sword).IsAssignableFrom(sword.GetType()));
        }
예제 #2
0
        public void WeaponGen_CreateType_Specific()
        {
            var target = new WeaponGenerator();

            var sword = target.CreateType <ShortSword>();

            Assert.IsTrue(sword is ShortSword);
        }