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"); }
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"); }