Exemple #1
0
        public static void TestUseCase()
        {
            var a = new Bridge558A();
            var b = new Bridge558B();

            Assert.AreEqual(a.zz(1), 1, "Bridge558 a.zz int");
            Assert.AreEqual(a.zz(""), 2, "Bridge558 a.zz string");

            Assert.AreEqual(b.zz(1), 1, "Bridge558 b.zz int");
            Assert.AreEqual(b.zz(""), 2, "Bridge558 b.zz string");
        }
Exemple #2
0
        public static void TestUseCase()
        {
            var a = new Bridge558A();
            var b = new Bridge558B();

            Assert.AreEqual(a.zz(1), 1, "Bridge558 a.zz int");
            Assert.AreEqual(a.zz(""), 2, "Bridge558 a.zz string");

            Assert.AreEqual(b.zz(1), 1, "Bridge558 b.zz int");
            Assert.AreEqual(b.zz(""), 2, "Bridge558 b.zz string");
        }