public void TestICoercible() { Coercible c = new Coercible(); Assert.AreSame(c, Coerce(c, typeof (string))); Assert.AreSame(c, Coerce(c, typeof (int))); Assert.AreEqual(new List(new object[] { typeof(string), typeof(int) }), c.Invocations); }
public void TestICoercible() { Coercible c = new Coercible(); Assert.AreSame(c, Coerce(c, typeof(string))); Assert.AreSame(c, Coerce(c, typeof(int))); Assert.AreEqual(new List(new object[] { typeof(string), typeof(int) }), c.Invocations); }