CodeGen\CodeGenAsyncMethodBuilderOverrideTests.cs (93)
111{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask")}
112{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T")}
221{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask")}
222{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T")}
272{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask")}
273{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T")}
325{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask")}
326{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T")}
327{AsyncBuilderCode("IgnoredTaskMethodBuilder", "MyTask")}
358{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask")}
359{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T")}
361{AsyncBuilderCode("IgnoredTaskMethodBuilder", "MyTask")
364{AsyncBuilderCode("IgnoredTaskMethodBuilder", "MyTask", "T")
396{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask")}
397{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T")}
399{AsyncBuilderCode("IgnoredTaskMethodBuilder", "MyTask")
402{AsyncBuilderCode("IgnoredTaskMethodBuilder", "MyTask", "T")
434{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask")}
435{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T")}
437{AsyncBuilderCode("IgnoredTaskMethodBuilder", "MyTask")
441{AsyncBuilderCode("IgnoredTaskMethodBuilder", "MyTask", "T")
474{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask")}
475{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T")}
477{AsyncBuilderCode("IgnoredTaskMethodBuilder", "MyTask")
480{AsyncBuilderCode("IgnoredTaskMethodBuilder", "MyTask", "T")
517{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask")}
518{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T")}
566{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask")}
567{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T")}
611{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask")}
612{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T")}
644{AsyncBuilderCode("B1", "T1").Replace("public class B1", "public class B1")}
645{AsyncBuilderCode("B2", "T2").Replace("public class B2", "internal class B2")}
646{AsyncBuilderCode("B3", "T3").Replace("public class B3", "public class B3").Replace("public T3 Task =>", "internal T3 Task =>")}
647{AsyncBuilderCode("B4", "T4").Replace("public class B4", "internal class B4")}
762{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", isStruct: true)}
763{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T", isStruct: true)}
816{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", isStruct: true)}
817{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T", isStruct: true)}
879{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", isStruct: true)}
880{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T", isStruct: true)}
937{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", isStruct: true)}
938{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T", isStruct: true)}
979{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask").Replace("public MyTask Task", "public object Task")}
980{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T").Replace("public MyTask<T> Task", "public object Task")}
1020{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask")
1023{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T")
1066{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask").Replace("public static MyTaskMethodBuilder Create()", accessibility + " static MyTaskMethodBuilder Create()")}
1067{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T").Replace("public static MyTaskMethodBuilder<T> Create()", accessibility + " static MyTaskMethodBuilder<T> Create()")}
1106{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask").Replace("public static MyTaskMethodBuilder Create()", "public MyTaskMethodBuilder Create()")}
1107{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T").Replace("public static MyTaskMethodBuilder<T> Create()", "public MyTaskMethodBuilder<T> Create()")}
1147{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask").Replace("public static MyTaskMethodBuilder Create()", "public static MyTaskMethodBuilder Create(int i)")}
1148{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T").Replace("public static MyTaskMethodBuilder<T> Create()", "public static MyTaskMethodBuilder<T> Create(int i)")}
1188{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask").Replace("public static MyTaskMethodBuilder Create()", "public static MyTaskMethodBuilder Create<U>()")}
1189{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T").Replace("public static MyTaskMethodBuilder<T> Create()", "public static MyTaskMethodBuilder<T> Create<U>()")}
1229{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask")
1234{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T")
1281{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask").Replace("public class MyTaskMethodBuilder", "internal class MyTaskMethodBuilder")}
1282{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T").Replace("public class MyTaskMethodBuilder<T>", "internal class MyTaskMethodBuilder<T>")}
1310{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask").Replace("public class MyTaskMethodBuilder", "private class MyTaskMethodBuilder")}
1311{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T").Replace("public class MyTaskMethodBuilder<T>", "private class MyTaskMethodBuilder<T>")}
1345{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask").Replace("public static MyTaskMethodBuilder Create()", "internal static MyTaskMethodBuilder Create()")}
1346{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T").Replace("public static MyTaskMethodBuilder<T> Create()", "internal static MyTaskMethodBuilder<T> Create()")}
1391{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", isStruct: true)}
1392{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T", isStruct: true)}
1432{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask")}
1433{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T")}
1472{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T")}
1500{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T")}
1534{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask").Replace("public MyTask Task =>", "internal MyTask Task =>")}
1535{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T").Replace("public MyTask<T> Task =>", "internal MyTask<T> Task =>")}
1574{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask").Replace("public MyTask Task => _task;", "public static MyTask Task => throw null;")}
1575{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T").Replace("public MyTask<T> Task => _task;", "public static MyTask<T> Task => throw null;")}
1614{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask").Replace("public MyTask Task => _task;", "public static MyTask Task = null;")}
1615{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T").Replace("public MyTask<T> Task => _task;", "public MyTask<T> Task = null;")}
1654{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask").Replace("public void SetException", "internal void SetException")}
1655{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T").Replace("public void SetException", "internal void SetException")}
1694{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask")
1697{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T")
1738{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask").Replace("public void SetException(System.Exception e)", "public void SetException()")}
1739{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T").Replace("public void SetException(System.Exception e)", "public void SetException()")}
1778{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask").Replace("public void SetResult", "internal void SetResult")}
1779{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T").Replace("public void SetResult", "internal void SetResult")}
1818{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask").Replace("public void AwaitOnCompleted", "internal void AwaitOnCompleted")}
1819{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T").Replace("public void AwaitOnCompleted", "internal void AwaitOnCompleted")}
1858{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask").Replace("public void AwaitUnsafeOnCompleted", "internal void AwaitUnsafeOnCompleted")}
1859{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T").Replace("public void AwaitUnsafeOnCompleted", "internal void AwaitUnsafeOnCompleted")}
1898{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask").Replace("public void Start", "internal void Start")}
1899{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T").Replace("public void Start", "internal void Start")}
1938{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask").Replace("public void SetStateMachine", "internal void SetStateMachine")}
1939{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T").Replace("public void SetStateMachine", "internal void SetStateMachine")}
2088{AsyncBuilderCode("MyTaskTypeBuilder", "MyTaskType").Replace("public class MyTaskType", "internal class MyTaskType")}
2132{AsyncBuilderCode("IgnoredTaskMethodBuilder", "MyTaskType")}