Exemplo n.º 1
0
        public void TestClearRemovesAllTriples()
        {
            var c = new TripleCollection();

            c.AddRange(new[] { T1, T2, T3, T4, T5, T6 });
            var triples = c.Items.ToList();

            Assert.AreEqual(6, triples.Count);
            c.Clear();
            Assert.AreEqual(0, c.Items.Count());
            triples = c.Items.ToList();
            Assert.AreEqual(0, triples.Count);
        }