Esempio n. 1
0
        public static void TestUseCase(Assert assert)
        {
            assert.Expect(5);

            var c = new Bridge606C();

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

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

            assert.Equal(b.X, "b", "Bridge606 B X");
            assert.Equal(b.Y, "a", "Bridge606 B Y");

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

            assert.Equal(s, "123 - b - a", "Bridge606 123");
        }
Esempio n. 2
0
        public static void TestUseCase(Assert assert)
        {
            assert.Expect(5);

            var c = new Bridge606C();
            c.Example1(y: "a", x: "b");
            assert.Equal(c.X, "b", "Bridge606 C X");
            assert.Equal(c.Y, "a", "Bridge606 C Y");

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

            var s = "123".Example2(y: "a", x: "b");
            assert.Equal(s, "123 - b - a", "Bridge606 123");
        }