コード例 #1
0
        public void ExistsReturnsTrueForObjectThatExists()
        {
            IGlobalState state = new GlobalState();

            int testNumber = 8;

            state.Add("test", testNumber);

            Assert.AreEqual(true, state.Exists("test"));
        }
コード例 #2
0
        public void ExistsReturnsFalseForObjectThatDoesntExists()
        {
            IGlobalState state = new GlobalState();

            Assert.AreEqual(false, state.Exists("pizza"));
        }