Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public async Task InvokingSetStringOverloadWithWrongParametersThrowsReverseProxyException()
 {
     var sut = new MyServiceProxyParameterMismatch(new MyService());
     await Assert.ThrowsExceptionAsync <ReverseProxyException>(async() => await sut.SetStringOverload("value"));
 }