Ejemplo n.º 1
0
        /// <exception cref="System.Exception"></exception>
        public virtual void TestStringArrayStoreObject()
        {
            var expectedItem = new StringArrayHolder
                                   (new[] { "one", "two", "three" });

            Db().Store(expectedItem);
            Db().Purge(expectedItem);
            var readItem = (StringArrayHolder)RetrieveOnlyInstance(typeof(StringArrayHolder
                                                                          ));

            Assert.AreNotSame(expectedItem, readItem);
            ArrayAssert.AreEqual(expectedItem._strings, readItem._strings);
        }
Ejemplo n.º 2
0
 /// <exception cref="System.Exception"></exception>
 public virtual void TestStringArrayStoreObject()
 {
     var expectedItem = new StringArrayHolder
         (new[] {"one", "two", "three"});
     Db().Store(expectedItem);
     Db().Purge(expectedItem);
     var readItem = (StringArrayHolder) RetrieveOnlyInstance(typeof (StringArrayHolder
         ));
     Assert.AreNotSame(expectedItem, readItem);
     ArrayAssert.AreEqual(expectedItem._strings, readItem._strings);
 }