示例#1
0
        public void ClassNTAttribute_Parameter_Test2()
        {
            var parmeter = ClassNTAttribute_Parameter_.Create("BlueprintRule_", "enBlueprintClassNetworkType.Node_State");

            Assert.Equal("BlueprintRule_", parmeter.Name);
            Assert.Equal(true, parmeter.IsEnumeral);
            Assert.Equal("enBlueprintClassNetworkType.Node_State", parmeter.Value);
            Assert.Equal(enBlueprintClassNetworkType.Node_State, _lamed.Types.Enum.Str_2EnumValue <enBlueprintClassNetworkType>(parmeter.Value.zObject().AsStr()));
        }
示例#2
0
        public void ClassNTAttribute_Parameter_Test1()
        {
            var parmeter = ClassNTAttribute_Parameter_.Create("BlueprintRule_", "Name = \"CTI Transformation\"");

            Assert.Equal("Name", parmeter.Name);
            Assert.Equal("CTI Transformation", parmeter.Value);
            Assert.Equal(false, parmeter.IsEnumeral);

            parmeter = ClassNTAttribute_Parameter_.Create("BlueprintRule_", "HasMethods = true");
            Assert.Equal("HasMethods", parmeter.Name);
            Assert.Equal(true, parmeter.Value);
            Assert.Equal(false, parmeter.IsEnumeral);
        }