public async Task Async_Task_Method_Intercepted_Parameter_Changed() { SomeTestClass someClass = new SomeTestClass(); await someClass.SomeVoidMethodAsync(bar); Assert.AreEqual(VoidMethodTestAspect.defaultInputParameter, someClass.Bar); }
public void Void_Method_Intercepted_Parameter_Changed() { SomeTestClass someClass = new SomeTestClass(); someClass.SomeVoidMethod(bar); Assert.AreEqual(VoidMethodTestAspect.defaultInputParameter, someClass.Bar); }
public async Task Async_Int_Method_Exception_Handled() { SomeTestClass someClass = new SomeTestClass(); int result = await someClass.ReturnIntegerMethodAsync(bar); Assert.AreEqual(IntMethodTestAspect.defaultInputParameter, someClass.Bar); Assert.AreEqual(IntMethodTestAspect.defaultReturnParameter, result); }