Example #1
0
 public void testLuck()
 {
     //create instance of factory
     LuckFactory f = new LuckFactory();
     //create instance from factory
     Luck p = f.create("Luck", true, 50) ;
     //check that it is right type
     Type t = new Luck().GetType();
     Assert.IsInstanceOfType(t, p);
 }
Example #2
0
        public void testLuck()
        {
            //create instance of factory
            LuckFactory f = new LuckFactory();
            //create instance from factory
            Luck p = f.create("Luck", true, 50);
            //check that it is right type
            Type t = new Luck().GetType();

            Assert.IsInstanceOfType(t, p);
        }
Example #3
0
 public void LuckTests()
 {
     Luck luckTest = new Luck("Rob", false, 10);
 }