Exemplo n.º 1
0
        public static void TestUseCase()
        {
            log = null;
            var c = new Bridge652A1();

            Assert.AreNotEqual(null, c.Bar, "Bridge652A1 Bar NotNull");
            Assert.AreEqual("Bridge652B1", log, "Bridge652A1 log");

            log = null;
            var d = new Bridge652A2();

            Assert.AreNotEqual(null, d.Bar, "Bridge652A2 Bar NotNull");
            Assert.AreEqual("Bridge652B2", log, "Bridge652A2 log");
        }
Exemplo n.º 2
0
        public static void TestUseCase(Assert assert)
        {
            assert.Expect(4);

            log = null;
            var c = new Bridge652A1();

            assert.NotEqual(c.Bar, null, "Bridge652A1 Bar NotNull");
            assert.Equal(log, "Bridge652B1", "Bridge652A1 log");

            log = null;
            var d = new Bridge652A2();

            assert.NotEqual(d.Bar, null, "Bridge652A2 Bar NotNull");
            assert.Equal(log, "Bridge652B2", "Bridge652A2 log");
        }