Ejemplo n.º 1
0
        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]);
        }
Ejemplo n.º 2
0
        public void Indexer_throws_ArgumentNullException_if_path_is_null()
        {
            var set = new MdDocumentSet();

            Assert.Throws <ArgumentNullException>(() => set[(string)null !]);