Exemplo n.º 1
0
        public void Test_Unit_Creation_InValid_HP()
        {
            string Ident = "Unit Name";
            int    HP    = -1;

            Unit Dummy = new DummyUnit(Ident, HP);
        }
Exemplo n.º 2
0
        public void Test_Unit_Creation_InValid_HP()
        {
            string Ident = "Unit Name";
            int HP = -1;

            Unit Dummy = new DummyUnit(Ident, HP);
            

        }
Exemplo n.º 3
0
        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);
            }
        }
Exemplo n.º 4
0
        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);
            }

        }