Exemple #1
0
        public void DocumentSetSubtractEmptyFromNonEmptyTest()
        {
            var docSet = new DocumentSet(new HashSet <Document>
            {
                new Document("doc")
            });

            Assert.Equal(new DocumentSet(), DocumentSet.Subtract(new DocumentSet(), docSet));
        }
Exemple #2
0
        public void DocumentSetSubtractSetFromEmptyTest()
        {
            var docSet = new DocumentSet(new HashSet <Document>
            {
                new Document("doc")
            });

            Assert.Equal(docSet, DocumentSet.Subtract(docSet, new DocumentSet()));
        }
Exemple #3
0
        public void DocumentSetSubtractTwoIdenticalTest()
        {
            var docSet = new DocumentSet(new HashSet <Document>
            {
                new Document("doc")
            });

            Assert.Equal(new DocumentSet(), DocumentSet.Subtract(docSet, docSet));
        }
Exemple #4
0
        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));
        }