public static int TestB2() { var l = new Bridge537B(); l.Add(new Bridge537A() { Id = 103 }); return Bridge537B.GetCount(l); }
public static void TestUseCase(Assert assert) { assert.Expect(2); assert.Equal(Bridge537B.TestB1(), 2, "Bridge537 TestB1"); assert.Equal(Bridge537B.TestB2(), 1, "Bridge537 TestB2"); }
public static int TestB2() { var l = new Bridge537B(); l.Add(new Bridge537A() { Id = 103 }); return(Bridge537B.GetCount(l)); }
public static int TestB1() { var l = new Bridge537B(); l.Add(new Bridge537A() { Id = 101 }); l.Add(new Bridge537A() { Id = 102 }); return(l.GetCount()); }
private static int GetCount(Bridge537B l) { return(l.list.Count); }