Skip to content

Commit 053e45d

Browse files
DO NOT MERGE ME
1 parent 85ec424 commit 053e45d

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

ICSharpCode.Decompiler.Tests/TestCases/Pretty/EnumTests.cs

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ public enum SimpleEnum
2828
Item2
2929
}
3030

31+
public enum NoZero
32+
{
33+
Item1 = 1,
34+
Item2
35+
}
36+
3137
public enum OutOfOrderMembers
3238
{
3339
Item1 = 1,
@@ -135,5 +141,18 @@ public object PreservingTypeWhenBoxedTwoEnum()
135141
{
136142
return AttributeTargets.Class | AttributeTargets.Delegate;
137143
}
144+
145+
public void EnumInNotZeroCheck(SimpleEnum value, NoZero value2)
146+
{
147+
if (value != SimpleEnum.Item1)
148+
{
149+
Console.WriteLine();
150+
}
151+
152+
if (value2 != 0)
153+
{
154+
Console.WriteLine();
155+
}
156+
}
138157
}
139-
}
158+
}

0 commit comments

Comments
 (0)