public void NonPublicStructInterfaceProxyTest() { PrivateStruct instance = default; IPrivateStruct proxy = instance.DuckCast <IPrivateStruct>(); Assert.Equal(instance.Value, proxy.Value); }
public void NonPublicStructInterfaceProxyTest() { PrivateStruct instance = default; IPrivateStruct proxy = instance.DuckCast <IPrivateStruct>(); Assert.Equal((int)instance.Value, (int)proxy.Value); Assert.Equal(ValuesDuckType.Third.ToString(), proxy.GetValue()); Assert.Equal(ValuesDuckType.Third.ToString(), proxy.GetValueProp); }