Пример #1
0
        public static void TestUseCase()
        {
            var a = new Bridge647A { foo = 1 };
            Assert.AreEqual(a["bar"], 1, "Bridge647 A");

            var b = new Bridge647B { foo = 1 };
            Assert.AreEqual(b["bar"], 1, "Bridge647 B bar");
            Assert.AreEqual(b["bar1"], 12, "Bridge647 B bar1");
        }
Пример #2
0
        public static void TestUseCase()
        {
            var a = new Bridge647A {
                foo = 1
            };

            Assert.AreEqual(a["bar"], 1, "Bridge647 A");

            var b = new Bridge647B {
                foo = 1
            };

            Assert.AreEqual(b["bar"], 1, "Bridge647 B bar");
            Assert.AreEqual(b["bar1"], 12, "Bridge647 B bar1");
        }