Ejemplo n.º 1
0
        public void TestSetRowVersion()
        {
            var rowVersion = new byte[1] {
                (byte)1
            };
            var rowVersionAsString = Convert.ToBase64String(rowVersion);
            var instance           = new TestConcurrentClass();

            instance.SetRowVersion(rowVersionAsString);
            Assert.IsNotNull(instance.RowVersion);
            CollectionAssert.AreEqual(rowVersion, instance.RowVersion);
        }
Ejemplo n.º 2
0
        public void TestGetRowVersionAsString()
        {
            var rowVersion = new byte[1] {
                (byte)1
            };
            var instance = new TestConcurrentClass
            {
                RowVersion = rowVersion
            };

            var rowVersionAsString = instance.GetRowVersionAsString();

            Assert.IsNotNull(rowVersionAsString);
            Assert.AreEqual(Convert.ToBase64String(rowVersion), rowVersionAsString);
        }