Exemple #1
0
        public void GetChildren_SecondChildOfRoot_ReturnsChildrenOfSecondChildOfRoot()
        {
            var fakes          = new NavigationItemFakes();
            var navigationFake = new NavigationFake(fakes);

            var children = navigationFake.PublicGetChildren(fakes.SecondChildOfRoot);

            children.ShouldBe(navigationFake.ChildrenOfSecondChildOfRoot);
        }
Exemple #2
0
        public void GetChildren_RootItemWithNullChildren_ReturnsNull()
        {
            var fakes          = new NavigationItemFakes();
            var navigationFake = new NavigationFake(fakes);

            var children = navigationFake.PublicGetChildren(fakes.RootWithNullChildren);

            children.ShouldBeNull();
        }