public void It_should_clear_nodes_when_adding_root_node() { _builder.AddNode(new GeneratorNode <Person>(1)); _builder.AddRootNode(new GeneratorNode <Person>(2)); var persons = _builder.Build(); persons.Should().HaveCount(2, "the other node was deleted when the new root was added"); }