예제 #1
0
        public static void Main(string[] args)
        {
            UnitTester tester = new UnitTester();
            Unit       unit   = new Unit(1000);

            tester.TestType(unit, "infantry", "infantry");
            tester.TestUnitSpecificProperty(unit, "hitPoints", new String('a', 'b'), new String('a', 'b'));
            tester.TestChangeProperty(unit, "hitPoints", new String('c', 'd'), new String('c', 'd'));
            tester.TestNonExistentProperty(unit, "strength");
        }
예제 #2
0
        public static void Main(string[] args)
        {
            UnitTester tester = new UnitTester();
            Unit unit = new Unit(1000);

            tester.TestType(unit, "infantry", "infantry");
            tester.TestUnitSpecificProperty(unit, "hitPoints", new String('a', 'b'), new String('a', 'b'));
            tester.TestChangeProperty(unit, "hitPoints", new String('c', 'd'), new String('c', 'd'));
            tester.TestNonExistentProperty(unit, "strength");
        }