Commits

alexdavies74  committed 7b0f917

Second provided example

  • Participants
  • Parent commits 9b42097

Comments (0)

Files changed (1)

File DataStoreChallenge/Tests/DataStoreTests.cs

             Assert.That(m_DataStore.Get("a"), Is.Null);
         }
 
+        [Test]
+        public void ProvidedExample2()
+        {
+            m_DataStore.Begin();
+            m_DataStore.Set("a", "30");
+            m_DataStore.Begin();
+            m_DataStore.Set("a", "40");
+            m_DataStore.Commit();
+            Assert.That(m_DataStore.Get("a"), Is.EqualTo("40"));
+            Assert.That(m_DataStore.Rollback(), Is.EqualTo(false));
+        }
+
 
     }
 }