Add NUnit test chassis and Powershelll test generator scripts
This commit is contained in:
15
Il2CppTests/TestSources/Generics.cs
Normal file
15
Il2CppTests/TestSources/Generics.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
/*
|
||||
Copyright 2017-2019 Katy Coe - http://www.hearthcode.org - http://www.djkaty.com
|
||||
|
||||
All rights reserved.
|
||||
*/
|
||||
|
||||
namespace Il2CppTests.TestSources
|
||||
{
|
||||
// Generic class
|
||||
internal class GenericClass<T>
|
||||
{
|
||||
// Generic method using generic type parameter of class
|
||||
public void GenericMethodWithClassGenericTypeParameter(T v) { }
|
||||
}
|
||||
}
|
||||
22
Il2CppTests/TestSources/Methods.cs
Normal file
22
Il2CppTests/TestSources/Methods.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
Copyright 2017-2019 Katy Coe - http://www.hearthcode.org - http://www.djkaty.com
|
||||
|
||||
All rights reserved.
|
||||
*/
|
||||
|
||||
using System.Text;
|
||||
|
||||
namespace Il2CppTests.TestSources
|
||||
{
|
||||
internal class Test
|
||||
{
|
||||
// A parameter-less method
|
||||
public void ParameterlessMethod() { }
|
||||
|
||||
// Method with value type return type
|
||||
public int ValueTypeReturnMethod() => 0;
|
||||
|
||||
// Method with reference type return type
|
||||
public StringBuilder ReferenceTypeReturnMethod() => new StringBuilder();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user