public void Indexer_returns_expected_document() { var path = "some/path/doc.md"; var set = new MdDocumentSet(); var document = set.CreateDocument(path); Assert.Same(document, set[path]); }
public void Indexer_throws_ArgumentNullException_if_path_is_null() { var set = new MdDocumentSet(); Assert.Throws <ArgumentNullException>(() => set[(string)null !]);