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); }
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); }