public void DoesNothingGivenNullQuestion() { var video = new ArchiveVideo(); video.AddQuestion(null); Assert.Empty(video.Questions); }
public void AddsQuestionToQuestionsList() { var video = new ArchiveVideo(); var question = new Question(); video.AddQuestion(question); Assert.Same(question, video.Questions.First()); }
public void ThrowsArgumentNullExceptionGivenNullQuestion() { var video = new ArchiveVideo(); var exception = Assert.Throws <ArgumentNullException>(() => video.AddQuestion(null)); }