public void DocumentSetSubtractEmptyFromNonEmptyTest() { var docSet = new DocumentSet(new HashSet <Document> { new Document("doc") }); Assert.Equal(new DocumentSet(), DocumentSet.Subtract(new DocumentSet(), docSet)); }
public void DocumentSetSubtractSetFromEmptyTest() { var docSet = new DocumentSet(new HashSet <Document> { new Document("doc") }); Assert.Equal(docSet, DocumentSet.Subtract(docSet, new DocumentSet())); }
public void DocumentSetSubtractTwoIdenticalTest() { var docSet = new DocumentSet(new HashSet <Document> { new Document("doc") }); Assert.Equal(new DocumentSet(), DocumentSet.Subtract(docSet, docSet)); }
public void DocumentSetSubtractTwoDifferentSetsTest() { var docSet1 = new DocumentSet(new HashSet <Document> { new Document("doc1") }); var docSet2 = new DocumentSet(new HashSet <Document> { new Document("doc2") }); Assert.Equal(docSet1, DocumentSet.Subtract(docSet1, docSet2)); }