public void WeaponGen_CreateType_Generic() { var target = new WeaponGenerator(); var sword = target.CreateType <Sword>(); Assert.IsTrue(typeof(Sword).IsAssignableFrom(sword.GetType())); }
public void WeaponGen_CreateType_Specific() { var target = new WeaponGenerator(); var sword = target.CreateType <ShortSword>(); Assert.IsTrue(sword is ShortSword); }