9 instantiations of TestObject
Microsoft.AspNetCore.Shared.Tests (9)
ObjectMethodExecutorTest.cs (9)
18private TestObject _targetObject = new TestObject(); 59var parameter = new TestObject(); 72var parameter = new TestObject(); 107var parameter = new TestObject(); 120var parameter = new TestObject(); 137var parameter = new TestObject(); 437return new TestObject() { value = "Hello" }; 483return Task.FromResult<TestObject>(new TestObject() { value = "Hello" }); 537return new TestAwaitable<TestObject>(new TestObject
52 references to TestObject
Microsoft.AspNetCore.Shared.Tests (52)
ObjectMethodExecutorTest.cs (52)
18private TestObject _targetObject = new TestObject(); 19private TypeInfo targetTypeInfo = typeof(TestObject).GetTypeInfo(); 50var resultObject = Assert.IsType<TestObject>(result); 59var parameter = new TestObject(); 63var resultObject = Assert.IsType<TestObject>(result); 72var parameter = new TestObject(); 98var resultObject = Assert.IsType<TestObject>(result); 107var parameter = new TestObject(); 111var resultObject = Assert.IsType<TestObject>(result); 120var parameter = new TestObject(); 129[InlineData(nameof(TestObject.ValueMethodWithReturnVoidThrowsExceptionAsync))] 130[InlineData(nameof(TestObject.ValueMethodWithReturnVoidValueTaskThrowsExceptionAsync))] 131[InlineData(nameof(TestObject.ValueMethodWithReturnUnitThrowsExceptionAsync))] 132[InlineData(nameof(TestObject.ValueMethodWithReturnValueTaskOfUnitThrowsExceptionAsync))] 133[InlineData(nameof(TestObject.ValueMethodWithReturnFSharpAsyncOfUnitThrowsExceptionAsync))] 137var parameter = new TestObject(); 169var result = await (TestAwaitable<TestObject>)executor.Execute(_targetObject, new object[] { "Hello", 123 }); 173Assert.Same(typeof(TestObject), executor.AsyncResultType); 204Assert.Same(typeof(TestObject), executor.AsyncResultType); 206Assert.IsType<TestObject>(result); 207Assert.Equal("Hello 123", ((TestObject)result).value); 228[InlineData(nameof(TestObject.VoidValueMethodAsync))] 229[InlineData(nameof(TestObject.VoidValueTaskMethodAsync))] 230[InlineData(nameof(TestObject.TaskOfUnitMethodAsync))] 231[InlineData(nameof(TestObject.ValueTaskOfUnitMethodAsync))] 232[InlineData(nameof(TestObject.FSharpAsyncOfUnitMethod))] 412var method = typeof(TestObject).GetMethod(methodName); 418var method = typeof(TestObject).GetMethod(methodName); 435public TestObject ValueMethodWithReturnType(int i) 440public TestObject ValueMethodWithReturnTypeThrowsException(TestObject i) 445public TestObject ValueMethodUpdateValue(TestObject parameter) 481public Task<TestObject> ValueMethodWithReturnTypeAsync(int i) 483return Task.FromResult<TestObject>(new TestObject() { value = "Hello" }); 486public async Task ValueMethodWithReturnVoidThrowsExceptionAsync(TestObject i) 492public async Task<Unit> ValueMethodWithReturnUnitThrowsExceptionAsync(TestObject i) 498public async ValueTask ValueMethodWithReturnVoidValueTaskThrowsExceptionAsync(TestObject i) 504public async ValueTask<Unit> ValueMethodWithReturnValueTaskOfUnitThrowsExceptionAsync(TestObject i) 510public FSharpAsync<Unit> ValueMethodWithReturnFSharpAsyncOfUnitThrowsExceptionAsync(TestObject i) 521public async Task<TestObject> ValueMethodWithReturnTypeThrowsExceptionAsync(TestObject i) 527public Task<TestObject> ValueMethodUpdateValueAsync(TestObject parameter) 530return Task.FromResult<TestObject>(parameter); 533public TestAwaitable<TestObject> CustomAwaitableOfReferenceTypeAsync( 537return new TestAwaitable<TestObject>(new TestObject