Tests: Update all tests

This commit is contained in:
Katy Coe
2019-11-11 03:04:19 +01:00
parent 13ceaaf47a
commit 1850eb0eed
19 changed files with 1421 additions and 59 deletions

View File

@@ -14,12 +14,18 @@ namespace Il2CppTests.TestSources
public virtual void VirtualMethod() { }
// Method with value type return type
public int ValueTypeReturnMethod() => 0;
public double ValueTypeReturnMethod() => 1.DivideByXExtension(2.0f);
// Method with reference type return type
public StringBuilder ReferenceTypeReturnMethod() => new StringBuilder();
}
public static class TestExtension
{
// Extension method on int
public static double DivideByXExtension(this int a, float x) => (double) a / x;
}
internal abstract class TestAbstract
{
public abstract void AbstractMethod();