Ejemplo n.º 1
0
        public static void TestUseCase()
        {
            var c = new Bridge606C();
            c.Example1(y: "a", x: "b");
            Assert.AreEqual(c.X, "b", "Bridge606 C X");
            Assert.AreEqual(c.Y, "a", "Bridge606 C Y");

            var b = new Bridge606B(y: "a", x: "b");
            Assert.AreEqual(b.X, "b", "Bridge606 B X");
            Assert.AreEqual(b.Y, "a", "Bridge606 B Y");

            var s = "123".Example2(y: "a", x: "b");
            Assert.AreEqual(s, "123 - b - a", "Bridge606 123");
        }
Ejemplo n.º 2
0
        public static void TestUseCase()
        {
            var c = new Bridge606C();

            c.Example1(y: "a", x: "b");
            Assert.AreEqual(c.X, "b", "Bridge606 C X");
            Assert.AreEqual(c.Y, "a", "Bridge606 C Y");

            var b = new Bridge606B(y: "a", x: "b");

            Assert.AreEqual(b.X, "b", "Bridge606 B X");
            Assert.AreEqual(b.Y, "a", "Bridge606 B Y");

            var s = "123".Example2(y: "a", x: "b");

            Assert.AreEqual(s, "123 - b - a", "Bridge606 123");
        }