예제 #1
0
파일: N595.cs 프로젝트: TinkerWorX/Bridge
        public static void TestUseCase()
        {
            StringBuilder buffer = new StringBuilder();
            var a = new Bridge595A(buffer);
            a.Render();
            Assert.AreEqual(buffer.ToString(), "Render0Render1", "Bridge595 A");

            buffer.Clear();
            var b = new Bridge595B(buffer);
            b.Render();
            Assert.AreEqual(buffer.ToString(), "Render0Render1", "Bridge595 B");
        }
예제 #2
0
        public static void TestUseCase()
        {
            StringBuilder buffer = new StringBuilder();
            var           a      = new Bridge595A(buffer);

            a.Render();
            Assert.AreEqual("Render0Render1", buffer.ToString(), "Bridge595 A");

            buffer.Clear();
            var b = new Bridge595B(buffer);

            b.Render();
            Assert.AreEqual("Render0Render1", buffer.ToString(), "Bridge595 B");
        }