Exemplo n.º 1
0
		public void TestCloneCustomValueType()
		{
			var vt = new MyValueType {I = 1, S = "hello"};
			var oVt = StmTransaction.CreateObject(vt);

			using (var tx = StmTransaction.BeginTransaction())
			{
				var vt2 = oVt.Read(StmReadOption.ReadWrite);
				Assert.AreEqual(vt.I, vt2.I);
				Assert.AreEqual(vt.S, vt2.S);
			}
		}
Exemplo n.º 2
0
        public void TestCloneCustomValueType()
        {
            var vt = new MyValueType {
                I = 1, S = "hello"
            };
            var oVt = StmTransaction.CreateObject(vt);

            using (var tx = StmTransaction.BeginTransaction())
            {
                var vt2 = oVt.Read(StmReadOption.ReadWrite);
                Assert.AreEqual(vt.I, vt2.I);
                Assert.AreEqual(vt.S, vt2.S);
            }
        }