Exemple #1
0
        public void PersistsValueTypeInStructType()
        {
            stateHelper.Value.Int = 5;
            stateHelper.Commit();

            Assert.Equal(5, stateHelper.Value.Int);

            stateHelper.Value.Int = 100;
            Assert.Equal(100, stateHelper.Value.Int);

            stateHelper.Rollback();
            Assert.Equal(5, stateHelper.Value.Int);
        }
Exemple #2
0
        public void PersistsValue()
        {
            intHelper.Value = 5;
            intHelper.Commit();

            Assert.Equal(5, intHelper.Value);

            intHelper.Value = 100;
            Assert.Equal(100, intHelper.Value);

            intHelper.Rollback();
            Assert.Equal(5, intHelper.Value);
        }