public void file_added() { var specification = new Specification { name = "Foo" }; var file = thePath.AppendPath("General", "Foo.md"); MarkdownWriter.WriteToFile(specification, file); ClassUnderTest.Added(file); ClassUnderTest.Hierarchy.Specifications[specification.id].name.ShouldBe("Foo"); }
public void file_added() { var specification = new Specification { name = "Foo" }; var file = thePath.AppendPath("General", "Foo.xml"); XmlWriter.WriteToXml(specification).Save(file); ClassUnderTest.Added(file); ClassUnderTest.Hierarchy.Specifications[specification.id].name.ShouldBe("Foo"); }