Example #1
0
        public static void N304()
        {
            var        c = new Bridge304();
            IBridge304 i = c;

            i.F("1");
            Assert.AreEqual("1", c.X, "Interface method works");

            c.F();
            Assert.AreEqual("void F()", c.X, "Class method works");
        }
Example #2
0
        // Bridge[#304]
        public static void N304(Assert assert)
        {
            assert.Expect(2);

            var        c = new Bridge304();
            IBridge304 i = c;

            i.F("1");
            assert.Equal(c.X, "1", "Interface method works");

            c.F();
            assert.Equal(c.X, "void F()", "Class method works");
        }