public static void AddingTwoExactStoresToFederationTest()
        {
            RDFFederation fed = new RDFFederation();

            fed.AddStore(StoreBuilder.CreateStore());
            fed.AddStore(StoreBuilder.CreateStore());
            Assert.NotEqual(fed.First().StoreID, fed.Last().StoreID);
        }
        public static void ClearingStoreTest()
        {
            var store = StoreBuilder.CreateStore();

            store.ClearQuadruples();

            Assert.Empty(store);
        }
        public static void RemoveStoreFromFederationTest()
        {
            RDFFederation  fed = StoreBuilder.CreateFederation();
            RDFMemoryStore mem = StoreBuilder.CreateStore();

            fed.RemoveStore(mem);
            Assert.DoesNotContain(mem, fed);
        }
        public static void StoreUnitTest()
        {
            var mem1 = StoreBuilder.CreateStore();
            var mem2 = StoreBuilder.CreateStore();

            var result = mem1.UnionWith(mem2);

            Assert.True(result.Equals(mem1));
        }
        public static void StoreDifferenceTest()
        {
            var mem1 = StoreBuilder.CreateStore();
            var mem2 = StoreBuilder.CreateStore();

            var result = mem1.DifferenceWith(mem2);

            Assert.Empty(result);
        }
        public static void ContainsQuadrupleTest()
        {
            RDFMemoryStore rdfms = StoreBuilder.CreateStore();

            RDFQuadruple contain = new RDFQuadruple(
                new RDFContext("http://www.waltdisney.com/"),
                new RDFResource("http://www.waltdisney.com/mickey_mouse"),
                new RDFResource("http://xmlns.com/foaf/0.1/age"),
                new RDFTypedLiteral("85", RDFModelEnums.RDFDatatypes.XSD_INT));

            Assert.True(rdfms.ContainsQuadruple(contain));
        }
        public static void CreateSimpleStoreTest()
        {
            RDFMemoryStore rdfms = StoreBuilder.CreateStore();

            Assert.Equal(3, rdfms.QuadruplesCount);
        }