-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'issue/nullable-system-type-arguments' into development
Closes #224
- Loading branch information
Showing
4 changed files
with
156 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
271 changes: 138 additions & 133 deletions
271
...inaries/DotNet/AsmResolver.DotNet.TestCases.CustomAttributes/CustomAttributesTestClass.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,133 +1,138 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
// Disable warnings for unused members. | ||
#pragma warning disable 67 | ||
|
||
namespace AsmResolver.DotNet.TestCases.CustomAttributes | ||
{ | ||
[TestCase] | ||
public class CustomAttributesTestClass | ||
{ | ||
[TestCase] | ||
public event EventHandler TestEvent; | ||
|
||
[TestCase] | ||
public int TestField; | ||
|
||
[TestCase] | ||
public void TestMethod([TestCase] int testParameter) | ||
{ | ||
} | ||
|
||
[TestCase] | ||
public int TestProperty | ||
{ | ||
[TestCase] | ||
get; | ||
[TestCase] | ||
set; | ||
} | ||
|
||
[TestCase(1)] | ||
public void FixedInt32Argument() | ||
{ | ||
} | ||
|
||
[TestCase("String fixed arg")] | ||
public void FixedStringArgument() | ||
{ | ||
} | ||
|
||
[TestCase(TestEnum.Value3)] | ||
public void FixedEnumArgument() | ||
{ | ||
} | ||
|
||
[TestCase(typeof(string))] | ||
public void FixedTypeArgument() | ||
{ | ||
} | ||
|
||
[TestCase(typeof(KeyValuePair<string[], int[]>))] | ||
public void FixedComplexTypeArgument() | ||
{ | ||
} | ||
|
||
[TestCase(2, "Fixed arg", TestEnum.Value3)] | ||
public void FixedMultipleArguments() | ||
{ | ||
} | ||
|
||
[TestCase(IntValue = 2)] | ||
public void NamedInt32Argument() | ||
{ | ||
} | ||
|
||
[TestCase(StringValue = "String named arg")] | ||
public void NamedStringArgument() | ||
{ | ||
} | ||
|
||
[TestCase(EnumValue = TestEnum.Value2)] | ||
public void NamedEnumArgument() | ||
{ | ||
} | ||
|
||
[TestCase(TypeValue = typeof(int))] | ||
public void NamedTypeArgument() | ||
{ | ||
} | ||
|
||
[TestCase(typeof(TestGenericType<object>))] | ||
public void GenericType() | ||
{ | ||
} | ||
|
||
[TestCase(typeof(TestGenericType<object>[]))] | ||
public void GenericTypeArray() | ||
{ | ||
} | ||
|
||
[TestCase((object) 123)] | ||
public void Int32PassedAsObject() | ||
{ | ||
} | ||
|
||
[TestCase((object) typeof(int))] | ||
public void TypePassedAsObject() | ||
{ | ||
} | ||
|
||
[TestCase(new int[] {1, 2, 3, 4})] | ||
public void FixedInt32ArrayArgument() | ||
{ | ||
} | ||
|
||
[TestCase(default(int[]))] | ||
public void FixedInt32ArrayNullArgument() | ||
{ | ||
} | ||
|
||
[TestCase(new int[0])] | ||
public void FixedInt32ArrayEmptyArgument() | ||
{ | ||
} | ||
|
||
[TestCase((object) new int[] {1, 2, 3, 4})] | ||
public void FixedInt32ArrayAsObjectArgument() | ||
{ | ||
} | ||
|
||
[TestCase((object) default(int[]))] | ||
public void FixedInt32ArrayAsObjectNullArgument() | ||
{ | ||
} | ||
|
||
[TestCase((object) new int[0])] | ||
public void FixedInt32ArrayAsObjectEmptyArgument() | ||
{ | ||
} | ||
|
||
} | ||
} | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
// Disable warnings for unused members. | ||
#pragma warning disable 67 | ||
|
||
namespace AsmResolver.DotNet.TestCases.CustomAttributes | ||
{ | ||
[TestCase] | ||
public class CustomAttributesTestClass | ||
{ | ||
[TestCase] | ||
public event EventHandler TestEvent; | ||
|
||
[TestCase] | ||
public int TestField; | ||
|
||
[TestCase] | ||
public void TestMethod([TestCase] int testParameter) | ||
{ | ||
} | ||
|
||
[TestCase] | ||
public int TestProperty | ||
{ | ||
[TestCase] | ||
get; | ||
[TestCase] | ||
set; | ||
} | ||
|
||
[TestCase(1)] | ||
public void FixedInt32Argument() | ||
{ | ||
} | ||
|
||
[TestCase("String fixed arg")] | ||
public void FixedStringArgument() | ||
{ | ||
} | ||
|
||
[TestCase(TestEnum.Value3)] | ||
public void FixedEnumArgument() | ||
{ | ||
} | ||
|
||
[TestCase(typeof(string))] | ||
public void FixedTypeArgument() | ||
{ | ||
} | ||
|
||
[TestCase(typeof(KeyValuePair<string[], int[]>))] | ||
public void FixedComplexTypeArgument() | ||
{ | ||
} | ||
|
||
[TestCase(2, "Fixed arg", TestEnum.Value3)] | ||
public void FixedMultipleArguments() | ||
{ | ||
} | ||
|
||
[TestCase(IntValue = 2)] | ||
public void NamedInt32Argument() | ||
{ | ||
} | ||
|
||
[TestCase(StringValue = "String named arg")] | ||
public void NamedStringArgument() | ||
{ | ||
} | ||
|
||
[TestCase(EnumValue = TestEnum.Value2)] | ||
public void NamedEnumArgument() | ||
{ | ||
} | ||
|
||
[TestCase(TypeValue = typeof(int))] | ||
public void NamedTypeArgument() | ||
{ | ||
} | ||
|
||
[TestCase(typeof(TestGenericType<object>))] | ||
public void GenericType() | ||
{ | ||
} | ||
|
||
[TestCase(typeof(TestGenericType<object>[]))] | ||
public void GenericTypeArray() | ||
{ | ||
} | ||
|
||
[TestCase((object) 123)] | ||
public void Int32PassedAsObject() | ||
{ | ||
} | ||
|
||
[TestCase((object) typeof(int))] | ||
public void TypePassedAsObject() | ||
{ | ||
} | ||
|
||
[TestCase(new int[] {1, 2, 3, 4})] | ||
public void FixedInt32ArrayArgument() | ||
{ | ||
} | ||
|
||
[TestCase(default(int[]))] | ||
public void FixedInt32ArrayNullArgument() | ||
{ | ||
} | ||
|
||
[TestCase(new int[0])] | ||
public void FixedInt32ArrayEmptyArgument() | ||
{ | ||
} | ||
|
||
[TestCase((object) new int[] {1, 2, 3, 4})] | ||
public void FixedInt32ArrayAsObjectArgument() | ||
{ | ||
} | ||
|
||
[TestCase((object) default(int[]))] | ||
public void FixedInt32ArrayAsObjectNullArgument() | ||
{ | ||
} | ||
|
||
[TestCase((object) new int[0])] | ||
public void FixedInt32ArrayAsObjectEmptyArgument() | ||
{ | ||
} | ||
|
||
[TestCase((Type) null)] | ||
public void FixedNullTypeArgument() | ||
{ | ||
} | ||
|
||
} | ||
} |