public virtual void TestAddRemove() { var name = TestSupport.RandomString(); var s = Client.GetSet <object>(name); s.Add("item1"); ITransactionContext context = Client.NewTransactionContext(); context.BeginTransaction(); ITransactionalSet <object> set = context.GetSet <object>(name); NUnit.Framework.Assert.IsTrue(set.Add("item2")); NUnit.Framework.Assert.AreEqual(2, set.Size()); NUnit.Framework.Assert.AreEqual(1, s.Count); NUnit.Framework.Assert.IsFalse(set.Remove("item3")); NUnit.Framework.Assert.IsTrue(set.Remove("item1")); context.CommitTransaction(); NUnit.Framework.Assert.AreEqual(1, s.Count); }