public void Test_Unit_Creation_InValid_HP() { string Ident = "Unit Name"; int HP = -1; Unit Dummy = new DummyUnit(Ident, HP); }
public void Test_Unit_Creation_Valid_HP() { string Ident = "Unit Name"; int HP = 100; try { Unit Dummy = new DummyUnit(Ident, HP); } catch (ArgumentException ae) { Assert.Fail("Expected no exception, but got: " + ae.Message); } }
public void Test_Unit_Creation_Valid_HP() { string Ident = "Unit Name"; int HP = 100; try { Unit Dummy = new DummyUnit(Ident, HP); } catch(ArgumentException ae) { Assert.Fail("Expected no exception, but got: " + ae.Message); } }