public static void Register() { Suite suite = new Suite(); suite.Name = "monster/attack"; suite.SetSetup(delegate() { Monster.Monster_Race r = UnitTest_Data.R_Human(); m = new Monster.Monster(); m.Race = r; m.r_idx = (short)r.ridx; Misc.r_info = new Monster.Monster_Race[] { r }; Player.Player.instance = null; Random.fix(100); }); suite.NoTeardown(); suite.AddTest("blows", test_blows); suite.AddTest("effects", test_effects); UnitTest_Main.AddSuite(suite); }
public static void Register() { Suite suite = new Suite(); suite.Name = "object/attack"; suite.NoSetup(); suite.NoTeardown(); suite.AddTest("breakage-chance", test_breakage_chance); UnitTest_Main.AddSuite(suite); }
public static void Register() { Suite suite = new Suite(); suite.Name = "pathfind/pathfind"; suite.NoSetup(); suite.NoTeardown(); suite.AddTest("dir-to", test_dir_to); UnitTest_Main.AddSuite(suite); }
public static void Register() { Suite suite = new Suite(); suite.Name = "artifact/randname"; suite.NoSetup(); suite.NoTeardown(); suite.AddTest("names", test_names); UnitTest_Main.AddSuite(suite); }
public static void Register() { Suite suite = new Suite(); suite.Name = "object/attack"; suite.NoSetup(); suite.NoTeardown(); suite.AddTest("breakage-chance", test_breakage_chance); UnitTest_Main.AddSuite(suite); }
public static void Register() { Suite suite = new Suite(); suite.Name = "trivial"; suite.NoSetup(); suite.NoTeardown(); suite.AddTest("OK", test_empty); suite.AddTest("Require", test_require); suite.AddTest("Equal", test_equal); UnitTest_Main.AddSuite(suite); }
public static void Register() { Suite suite = new Suite(); suite.Name = "monster/monster"; suite.SetSetup(delegate() { UnitTest_Utils.read_edit_files(); }); suite.NoTeardown(); suite.AddTest("match_monster_bases", test_match_monster_bases); UnitTest_Main.AddSuite(suite); }
public static void Register() { Suite suite = new Suite(); suite.Name = "artifact/randname"; suite.NoSetup(); suite.NoTeardown(); suite.AddTest("names", test_names); UnitTest_Main.AddSuite(suite); }
public static void Register() { Suite suite = new Suite(); suite.Name = "command/lookup"; suite.SetSetup(delegate() { Command.Init(); }); suite.NoTeardown(); suite.AddTest("cmd_lookup", test_cmd_lookup); UnitTest_Main.AddSuite(suite); }
public static void Register() { Suite suite = new Suite(); suite.Name = "pathfind/pathfind"; suite.NoSetup(); suite.NoTeardown(); suite.AddTest("dir-to", test_dir_to); UnitTest_Main.AddSuite(suite); }
public static void Register() { Suite suite = new Suite(); suite.Name = "trivial"; suite.NoSetup(); suite.NoTeardown(); suite.AddTest("OK", test_empty); suite.AddTest("Require", test_require); suite.AddTest("Equal", test_equal); UnitTest_Main.AddSuite(suite); }
public static void Register() { Suite suite = new Suite(); suite.Name = "command/lookup"; suite.SetSetup(delegate() { Command.Init(); }); suite.NoTeardown(); suite.AddTest("cmd_lookup", test_cmd_lookup); UnitTest_Main.AddSuite(suite); }
public static void Register() { Suite suite = new Suite(); suite.Name = "monster/monster"; suite.SetSetup(delegate() { UnitTest_Utils.read_edit_files(); }); suite.NoTeardown(); suite.AddTest("match_monster_bases", test_match_monster_bases); UnitTest_Main.AddSuite(suite); }
public static void Register() { Suite suite = new Suite(); suite.Name = "player/birth"; suite.SetSetup(delegate() { p = new Player.Player(); }); suite.NoTeardown(); suite.AddTest("generate0", test_generate0); UnitTest_Main.AddSuite(suite); }
public static void Register() { Suite suite = new Suite(); suite.Name = "player"; suite.SetSetup(delegate() { p = new CSAngband.Player.Player(); }); suite.NoTeardown(); suite.AddTest("Increment Stat", test_stat_inc); suite.AddTest("Decrement Stat", test_stat_dec); UnitTest_Main.AddSuite(suite); }
public static void Register() { Suite suite = new Suite(); suite.Name = "z-textblock/textblock"; suite.NoSetup(); suite.NoTeardown(); suite.AddTest("Constructor", test_alloc); suite.AddTest("Append", test_append); suite.AddTest("Colour", test_colour); suite.AddTest("Length/Content", test_length); UnitTest_Main.AddSuite(suite); }
public static void Register() { Suite suite = new Suite(); suite.Name = "store/store"; suite.SetSetup(delegate() { UnitTest_Utils.read_edit_files(); }); suite.NoTeardown(); suite.AddTest("Enough items in Armoury", test_enough_armor); suite.AddTest("Enough items in Weaponsmith", test_enough_weapons); suite.AddTest("Enough items in Temple", test_enough_temple); suite.AddTest("Enough items in Alchemists", test_enough_alchemy); suite.AddTest("Enough items in Magicians", test_enough_magic); UnitTest_Main.AddSuite(suite); }
public static void Register() { Suite suite = new Suite(); suite.Name = "player"; suite.SetSetup(delegate() { p = new CSAngband.Player.Player(); }); suite.NoTeardown(); suite.AddTest("Increment Stat", test_stat_inc); suite.AddTest("Decrement Stat", test_stat_dec); UnitTest_Main.AddSuite(suite); }
public static void Register() { Suite suite = new Suite(); suite.Name = "store/store"; suite.SetSetup(delegate() { UnitTest_Utils.read_edit_files(); }); suite.NoTeardown(); suite.AddTest("Enough items in Armoury", test_enough_armor); suite.AddTest("Enough items in Weaponsmith", test_enough_weapons); suite.AddTest("Enough items in Temple", test_enough_temple); suite.AddTest("Enough items in Alchemists", test_enough_alchemy); suite.AddTest("Enough items in Magicians", test_enough_magic); UnitTest_Main.AddSuite(suite); }
public static void Register() { Suite suite = new Suite(); suite.Name = "monster/attack"; suite.SetSetup(delegate() { Monster.Monster_Race r = UnitTest_Data.R_Human(); m = new Monster.Monster(); m.Race = r; m.r_idx = (short)r.ridx; Misc.r_info = new Monster.Monster_Race[] {r}; Player.Player.instance = null; Random.fix(100); }); suite.NoTeardown(); suite.AddTest("blows", test_blows); suite.AddTest("effects", test_effects); UnitTest_Main.AddSuite(suite); }
public static void Register() { Suite suite = new Suite(); suite.Name = "player/history"; suite.SetSetup(delegate() { //INIT ca = new Player.History_Chart(); cb = new Player.History_Chart(); cc = new Player.History_Chart(); ea0 = new Player.History_Entry(); ea1 = new Player.History_Entry(); eb0 = new Player.History_Entry(); eb1 = new Player.History_Entry(); ec0 = new Player.History_Entry(); ec1 = new Player.History_Entry(); //HOOK & SET ca.entries = ea0; cb.entries = eb0; cc.entries = ec0; ea0.next = ea1; ea0.succ = cb; ea0.roll = 50; ea0.bonus = 0; ea0.text = "A0"; ea1.next = null; ea1.succ = cc; ea1.roll = 100; ea1.bonus = 0; ea1.text = "A1"; eb0.next = eb1; eb0.succ = cc; eb0.roll = 50; eb0.bonus = 0; eb0.text = "B0"; eb1.next = null; eb1.succ = null; eb1.roll = 100; eb1.bonus = 0; eb1.text = "B1"; ec0.next = ec1; ec0.succ = null; ec0.roll = 50; ec0.bonus = 0; ec0.text = "C0"; ec1.next = null; ec1.succ = null; ec1.roll = 100; ec1.bonus = 0; ec1.text = "C1"; }); suite.NoTeardown(); suite.AddTest("0", test_0); UnitTest_Main.AddSuite(suite); }
public static void Register() { Suite suite = new Suite(); suite.Name = "player/history"; suite.SetSetup(delegate() { //INIT ca = new Player.History_Chart(); cb = new Player.History_Chart(); cc = new Player.History_Chart(); ea0 = new Player.History_Entry(); ea1 = new Player.History_Entry(); eb0 = new Player.History_Entry(); eb1 = new Player.History_Entry(); ec0 = new Player.History_Entry(); ec1 = new Player.History_Entry(); //HOOK & SET ca.entries = ea0; cb.entries = eb0; cc.entries = ec0; ea0.next = ea1; ea0.succ = cb; ea0.roll = 50; ea0.bonus = 0; ea0.text = "A0"; ea1.next = null; ea1.succ = cc; ea1.roll = 100; ea1.bonus = 0; ea1.text = "A1"; eb0.next = eb1; eb0.succ = cc; eb0.roll = 50; eb0.bonus = 0; eb0.text = "B0"; eb1.next = null; eb1.succ = null; eb1.roll = 100; eb1.bonus = 0; eb1.text = "B1"; ec0.next = ec1; ec0.succ = null; ec0.roll = 50; ec0.bonus = 0; ec0.text = "C0"; ec1.next = null; ec1.succ = null; ec1.roll = 100; ec1.bonus = 0; ec1.text = "C1"; }); suite.NoTeardown(); suite.AddTest("0", test_0); UnitTest_Main.AddSuite(suite); }