Beispiel #1
0
        public static int TestB2()
        {
            var l = new Bridge537B();

            l.Add(new Bridge537A() { Id = 103 });

            return Bridge537B.GetCount(l);
        }
Beispiel #2
0
        public static int TestB2()
        {
            var l = new Bridge537B();

            l.Add(new Bridge537A()
            {
                Id = 103
            });

            return(Bridge537B.GetCount(l));
        }
Beispiel #3
0
        public static int TestB1()
        {
            var l = new Bridge537B();

            l.Add(new Bridge537A()
            {
                Id = 101
            });
            l.Add(new Bridge537A()
            {
                Id = 102
            });

            return(l.GetCount());
        }
Beispiel #4
0
        public static void TestUseCase()
        {
            Assert.AreEqual(Bridge537B.TestB1(), 2, "Bridge537 TestB1");

            Assert.AreEqual(Bridge537B.TestB2(), 1, "Bridge537 TestB2");
        }
Beispiel #5
0
 private static int GetCount(Bridge537B l)
 {
     return(l.list.Count);
 }