Beispiel #1
0
        public virtual void Test()
        {
            NamedList original = new NamedList("foo");

            original.Add("bar");
            A().Provider().StoreNew(original);
            A().Provider().Commit();
            ReplicateAll(A().Provider(), B().Provider());
            NamedList replicated = (NamedList)B().Provider().GetStoredObjects(typeof(NamedList
                                                                                     )).GetEnumerator().Current;

            Assert.AreEqual(original.Name(), replicated.Name());
            CollectionAssert.AreEqual(original, replicated);
        }