Example #1
0
        public void TestRevertToPosition()
        {
            decisions.Decide(1, 1, defaultRule);
            decisions.Decide(-2, 2, defaultRule);
            decisions.Decide(3, 3, defaultRule);
            decisions.Decide(-4, 4, defaultRule);

            decisions.RevertToPosition(1);

            Assert.AreEqual(2, decisions.Count);
            Assert.IsTrue(decisions.IsDecided(1));
            Assert.IsTrue(decisions.IsDecided(2));
            Assert.IsFalse(decisions.IsDecided(3));
            Assert.IsFalse(decisions.IsDecided(4));
        }