Exemplo n.º 1
0
        public void SetGetTestDefaultValue()
        {
            PersistentFormHandler handler = new PersistentFormHandler(GetType(), 0, Rectangle.Empty);

            handler.Set("keyDefault", 111);
            handler = new PersistentFormHandler(GetType(), 0, Rectangle.Empty);
            Assert.AreEqual(500, handler.Get("keyNotAvailable", 500));
        }
Exemplo n.º 2
0
        public void SetGetTest()
        {
            PersistentFormHandler handler = new PersistentFormHandler(GetType(), 0, Rectangle.Empty);

            handler.Set("key", 189);
            handler = new PersistentFormHandler(GetType(), 0, Rectangle.Empty);
            Assert.AreEqual(189, handler.Get <int>("key"));
        }