public void SetUp() { var section = new Section(); var subSection = new Section(); section.Sections.Add(subSection); this.sectionRowViewModel = new SectionRowViewModel(section, null); }
public void VerifyThatHasSectionWorks() { Assert.That(this.sectionRowViewModel.HasSection, Is.True); var section2 = new Section(); var sectionRowViewModel2 = new SectionRowViewModel(section2, null); Assert.That(sectionRowViewModel2.HasSection, Is.False); }