public async Task InvokingSetStringOverloadWithValueAndInheritanceWorks() { var sut = new MyServiceProxyParameterMismatch(new MyService()); sut.SetString("A string"); await sut.SetStringOverload(); var result = await sut.GetString(); Assert.AreEqual("A string A string", result); }
public async Task InvokingSetStringOverloadWithWrongParametersThrowsReverseProxyException() { var sut = new MyServiceProxyParameterMismatch(new MyService()); await Assert.ThrowsExceptionAsync <ReverseProxyException>(async() => await sut.SetStringOverload("value")); }