Exemple #1
0
        public void testExplicitImplementation1()
        {
            ISimpleInterface x = new ExplicitImplementation();

            x.Foo();
            AssertTrue(true);
        }
Exemple #2
0
    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);
    }