public void CovarianceAndContravarianceBoxing() { var obj = new UnrelatedType10().ToContract<IVariance<int, object>>(); Assert.AreEqual(1, obj.VariantMethod(1)); }
public void InvarianceBoxing() { var obj = new UnrelatedType10().ToContract<IVariance<object, int>>(); Assert.AreEqual(1, obj.VariantMethod("A")); }