Skip to content

Commit

Permalink
Add flags enum test
Browse files Browse the repository at this point in the history
  • Loading branch information
xPaw committed Apr 13, 2024
1 parent b61e276 commit 69f7786
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"0"
{
"VEnum" "1337"
"VFlags" "10"
"VFloat" "1234.5677"
"VInt" "270544960"
"VLong" "72623859790382856"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public void CreatesTextDocument()
VLong = 0x0102030405060708,
VULong = 0x8877665544332211u,
VEnum = SomeEnum.Leet,
VFlags = SomeFlags.Foo | SomeFlags.Bar,
},
};

Expand Down Expand Up @@ -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
Expand All @@ -52,5 +54,12 @@ enum SomeEnum
Two = 2,
Leet = 1337,
}

[Flags]
enum SomeFlags
{
Foo = 1 << 1,
Bar = 1 << 3,
}
}
}

0 comments on commit 69f7786

Please sign in to comment.