Exemplo n.º 1
0
        public void ResetToInitialTest()
        {
            domain.SetCurrentDomain(new List <int> {
                1, 2, 3
            });
            domain.SetInitialDomain(new List <int> {
                4, 5
            });
            Assert.AreNotEqual(domain.GetSize(), domain.GetInitialSize());

            domain.ResetToInitial();

            Assert.AreEqual(domain.GetSize(), domain.GetInitialSize());
            for (int i = 0; i < domain.GetSize(); ++i)
            {
                Assert.AreEqual(domain.GetValue(i), domain.GetInitialDomain()[i]);
            }
        }