Beispiel #1
0
        public void GivenNullOrEmptyTitle_ThrowsArgumentOutOfRangeException()
        {
            var section = InterpretationSectionBuilder.Initialize()
                          .SetTitle(string.Empty)
                          .AddParagraph(string.Empty)
                          .BuildWithoutModelValidation();

            Assert.Throws <ArgumentOutOfRangeException>(() =>
                                                        InterpretationText.Build(string.Empty, string.Empty, new List <InterpretationSection> {
                section
            }));
        }
Beispiel #2
0
 public void GivenNullOrEmptySection_ThrowsArgumentNullException()
 {
     Assert.Throws <ArgumentNullException>(() =>
                                           InterpretationText.Build("Title", string.Empty, null));
 }