public void testExplicitImplementation1() { ISimpleInterface x = new ExplicitImplementation(); x.Foo(); AssertTrue(true); }
public void ShouldNotFailForExplicitImplementation() { var foo = new ExplicitImplementation(); var fooProxy = StructProxy.CreateProxyInstance <IFoo>(foo); Assert.DoesNotThrow(() => fooProxy.Value = 1); Assert.DoesNotThrow(() => fooProxy.Compute(1, 2)); Assert.IsNotNull(fooProxy); Assert.AreSame(fooProxy, foo); }