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); }
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); }
public void LuckTests() { Luck luckTest = new Luck("Rob", false, 10); }