Example #1
0
        public void Should_Terminate_Tree_Structure_After_One_Node()
        {
            var flatObjectTree = new FlatObjectTree();

            _matcher.Match(flatObjectTree);

            Assert.IsNotNullOrEmpty(flatObjectTree.Id);
            Assert.IsNotNullOrEmpty(flatObjectTree.Name);
            Assert.IsNull(flatObjectTree.Parent, "Should only create one node (the root) in a tree structure");
        }
Example #2
0
        public void Should_Terminate_Tree_Structure_After_One_Node()
        {
            var flatObjectTree = new FlatObjectTree();

            _matcher.Match(flatObjectTree);

            Assert.IsNotNullOrEmpty(flatObjectTree.Id);
            Assert.IsNotNullOrEmpty(flatObjectTree.Name);
            Assert.IsNull(flatObjectTree.Parent, "Should only create one node (the root) in a tree structure");
        }