Ejemplo n.º 1
0
        public void SetUp()
        {
            var section    = new Section();
            var subSection = new Section();

            section.Sections.Add(subSection);
            this.sectionRowViewModel = new SectionRowViewModel(section, null);
        }
Ejemplo n.º 2
0
        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);
        }