コード例 #1
0
        public void SetValueShouldSetValue()
        {
            const string testKey = "MyTestKey";
            const string fullKey = "System.String:" + testKey;
            const string value   = "12345";

            _valueProvider.SetValue <string>(testKey, value);

            Assert.IsTrue((string)HttpContext.Current.Session[fullKey] == value);
        }
コード例 #2
0
        public void SetValueShouldSetValue()
        {
            const string testKey = "MyTestKey";
            const string fullKey = "System.String:" + testKey;
            const string value   = "12345";

            _valueProvider.SetValue <string>(testKey, value);


            Assert.True(_httpContextWrapper.GetSessionItem(fullKey) == value);
        }