diff --git a/ValveKeyValue/ValveKeyValue.Test/Test Data/Text/serialization_types_expected.vdf b/ValveKeyValue/ValveKeyValue.Test/Test Data/Text/serialization_types_expected.vdf index 6c1e67c2..9446f2ba 100644 --- a/ValveKeyValue/ValveKeyValue.Test/Test Data/Text/serialization_types_expected.vdf +++ b/ValveKeyValue/ValveKeyValue.Test/Test Data/Text/serialization_types_expected.vdf @@ -3,6 +3,7 @@ "0" { "VEnum" "1337" + "VFlags" "10" "VFloat" "1234.5677" "VInt" "270544960" "VLong" "72623859790382856" diff --git a/ValveKeyValue/ValveKeyValue.Test/Text/ObjectSerializationTypesTestCase.cs b/ValveKeyValue/ValveKeyValue.Test/Text/ObjectSerializationTypesTestCase.cs index a22fb171..8ddbd3b1 100644 --- a/ValveKeyValue/ValveKeyValue.Test/Text/ObjectSerializationTypesTestCase.cs +++ b/ValveKeyValue/ValveKeyValue.Test/Text/ObjectSerializationTypesTestCase.cs @@ -15,6 +15,7 @@ public void CreatesTextDocument() VLong = 0x0102030405060708, VULong = 0x8877665544332211u, VEnum = SomeEnum.Leet, + VFlags = SomeFlags.Foo | SomeFlags.Bar, }, }; @@ -44,6 +45,7 @@ class DataObject public ulong VULong { get; set; } public float VFloat { get; set; } public SomeEnum VEnum { get; set; } + public SomeFlags VFlags { get; set; } } enum SomeEnum @@ -52,5 +54,12 @@ enum SomeEnum Two = 2, Leet = 1337, } + + [Flags] + enum SomeFlags + { + Foo = 1 << 1, + Bar = 1 << 3, + } } }