Наследование: ICoercible
Пример #1
0
        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);
        }
Пример #2
0
        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);
        }