public void DocumentSetCreationParamsMultiTest() { var doc1 = new Document("doc1"); var doc2 = new Document("doc2"); var documentSet = new DocumentSet(doc1, doc2); Assert.True(documentSet.Has(doc1) && documentSet.Has(doc2)); }
public void DocumentSetCreationParamsSingleTest() { var doc1 = new Document("doc1"); var documentSet = new DocumentSet(doc1); Assert.True(documentSet.Has(doc1)); }
public void HasFalseTest() { var docSet1 = new DocumentSet(new HashSet <Document> { new Document("doc") }); Assert.False(docSet1.Has(new Document("doc2"))); }
public void AddTest() { var docSet1 = new DocumentSet(new HashSet <Document> { new Document("doc") }); docSet1.Add(new Document("doc2")); Assert.True(docSet1.Has(new Document("doc2"))); }