示例#1
0
文件: N606.cs 项目: TinkerWorX/Bridge
        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");
        }
示例#2
0
文件: N606.cs 项目: patryk9200/Bridge
        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");
        }