Example #1
0
        private static void RunSimple()
        {
            UEnum unrealEnum = UEnum.GetEnum <Test_SimpleEnum>();

            Tests.Assert(unrealEnum != null, "Test_SimpleEnum");

            Tests.AssertEnumValue(unrealEnum, "Val1", 0);
            Tests.AssertEnumValue(unrealEnum, "Val2", 2);
            Tests.AssertEnumValue(unrealEnum, "Val3", 4);
        }
Example #2
0
        private static void RunAdvanced()
        {
            UEnum unrealEnum = UEnum.GetEnum <Test_AdvancedEnum>();

            Tests.Assert(unrealEnum != null, "Test_AdvancedEnum");

            Tests.AssertEnumValue(unrealEnum, "Val1", 1);
            Tests.AssertEnumValue(unrealEnum, "Val2", 2);
            Tests.AssertEnumValue(unrealEnum, "Val3", 5);
            Tests.AssertEnumValue(unrealEnum, "Val4", 0x0001000000000000);
            Tests.AssertEnumValue(unrealEnum, "Val5", 0x0020000000000000);
        }