示例#1
0
 public MemberTests()
 {
     member = new Member();
     member.AddExpense(15);
     member.AddExpense(15.01m);
     member.AddExpense(3);
     member.AddExpense(3.01m);
 }
        public TripGroupTests()
        {
            tripGroup = new TripGroup();
            Member member = new Member();

            member.AddExpense(10);
            member.AddExpense(20);
            tripGroup.AddMember(member);
            member = new Member();
            member.AddExpense(15);
            member.AddExpense(15.01m);
            member.AddExpense(3);
            member.AddExpense(3.01m);
            tripGroup.AddMember(member);

            member = new Member();
            member.AddExpense(5);
            member.AddExpense(9);
            member.AddExpense(4);
            tripGroup.AddMember(member);
        }