public void HasValueShouldReturnTrueWhenValueExists() { const string testKey = "MyTestKey"; const string fullKey = "System.String:" + testKey; HttpContext.Current.Session[fullKey] = ""; Assert.IsTrue(_valueProvider.HasValue <string>(testKey)); }
public void HasValueShouldReturnTrueWhenValueExists() { const string testKey = "MyTestKey"; const string fullKey = "System.String:" + testKey; _httpContextWrapper.SetSessionItem(fullKey, ""); Assert.True(_valueProvider.HasValue <string>(testKey)); }