示例#1
0
        void when_adding_a_parent()
        {
            context["when adding a parent organization"] = () =>
            {
                before = () =>
                {
                    child.AddParent(parent);
                };

                it["should add parent to the parents collection"] = () =>
                {
                    child.Parents.should_contain(parent);
                };

                it["should add the child to the parent's child collection"] = () =>
                {
                    parent.Children.should_contain(child);
                };
            };
        }