Esempio n. 1
0
 public void should_require_id()
 {
     var section = new BasicSection(1, "name");
     section.SectionId.Should().Be(1);
 }
Esempio n. 2
0
 public void should_require_name()
 {
     var section = new BasicSection(1, "name");
     section.Name.Should().Be("name");
 }
Esempio n. 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);
 }