Beispiel #1
0
        public void TestIdFactory()
        {
            int initial_value = 4;
            int expected      = 5;

            IdFactory.SetCurrentId(initial_value);

            int actual = IdFactory.GetCurrentId();

            Assert.AreEqual(expected, actual);  //should get the next id

            int nextId = IdFactory.GetCurrentId();

            Assert.AreNotEqual(expected, nextId);               //should not be the same as last gotten id
        }