mirror of https://github.com/icsharpcode/ILSpy.git
4 changed files with 71 additions and 4 deletions
@ -0,0 +1,39 @@
@@ -0,0 +1,39 @@
|
||||
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
|
||||
// This code is distributed under MIT X11 license (for details please see \doc\license.txt)
|
||||
|
||||
//$CS
|
||||
using System; |
||||
//$CE
|
||||
|
||||
//$$ SingleValue
|
||||
public class TS_SingleValue |
||||
{ |
||||
public AttributeTargets Method() |
||||
{ |
||||
return AttributeTargets.Class; |
||||
} |
||||
} |
||||
//$$ TwoValuesOr
|
||||
public class TS_TwoValuesOr |
||||
{ |
||||
public AttributeTargets Method() |
||||
{ |
||||
return AttributeTargets.Class | AttributeTargets.Method; |
||||
} |
||||
} |
||||
//$$ ThreeValuesOr
|
||||
public class TS_ThreeValuesOr |
||||
{ |
||||
public AttributeTargets Method() |
||||
{ |
||||
return AttributeTargets.Class | AttributeTargets.Method | AttributeTargets.Parameter; |
||||
} |
||||
} |
||||
//$$ UnknownNumericValue
|
||||
public class TS_UnknownNumericValue |
||||
{ |
||||
public AttributeTargets Method() |
||||
{ |
||||
return (AttributeTargets)1000000; |
||||
} |
||||
} |
@ -0,0 +1,17 @@
@@ -0,0 +1,17 @@
|
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Linq; |
||||
using System.Text; |
||||
using MbUnit.Framework; |
||||
|
||||
namespace ICSharpCode.Decompiler.Tests.Types |
||||
{ |
||||
public class EnumTests : DecompilerTestBase |
||||
{ |
||||
[StaticTestFactory] |
||||
public static IEnumerable<Test> EnumSamples() |
||||
{ |
||||
return GenerateSectionTests(@"Types\EnumSamples.cs"); |
||||
} |
||||
} |
||||
} |
Loading…
Reference in new issue