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); }
public virtual bool Equals(Answers other) { if (ReferenceEquals(null, other)) return false; if (ReferenceEquals(this, other)) return true; return Equals(other.answers, answers); }