AddAnswer() public method

public AddAnswer ( Answer answer ) : void
answer Answer
return void
示例#1
0
 public void AddAnswer()
 {
     Answers answers = new Answers();
     answers.AddAnswer(AnswerMother.KamalsGoodAnswer(UserMother.Kamal));
     Assert.AreEqual(1, answers.Count);
     answers.AddAnswer(AnswerMother.KamalsBadAnswer(UserMother.Kamal));
     Assert.AreEqual(2, answers.Count);
 }