예제 #1
0
 public void should_require_id()
 {
     var section = new BasicSection(1, "name");
     section.SectionId.Should().Be(1);
 }
예제 #2
0
 public void should_require_name()
 {
     var section = new BasicSection(1, "name");
     section.Name.Should().Be("name");
 }
예제 #3
0
 public void should_accept_any_content()
 {
     var section = new BasicSection(1, "name");
     section.AddContent(new ContentElement(-1, Language.Invariant, ContentType.Text));
     section.GetContent().Count().Should().Be(1);
 }