diff --git a/test/Microsoft.AspNet.Mvc.Core.Test/AntiXsrf/AntiForgeryTokenStoreTest.cs b/test/Microsoft.AspNet.Mvc.Core.Test/AntiXsrf/AntiForgeryTokenStoreTest.cs index c0920f3e87..2ed2fd786d 100644 --- a/test/Microsoft.AspNet.Mvc.Core.Test/AntiXsrf/AntiForgeryTokenStoreTest.cs +++ b/test/Microsoft.AspNet.Mvc.Core.Test/AntiXsrf/AntiForgeryTokenStoreTest.cs @@ -311,11 +311,27 @@ namespace Microsoft.AspNet.Mvc.Core.Test private class MockCookieCollection : IReadableStringCollection { - private Dictionary dictionary; + private Dictionary _dictionary; + + public int Count + { + get + { + return _dictionary.Count; + } + } + + public ICollection Keys + { + get + { + return _dictionary.Keys; + } + } public MockCookieCollection(Dictionary dictionary) { - this.dictionary = dictionary; + _dictionary = dictionary; } public static MockCookieCollection GetDummyInstance(string key, string value) @@ -333,9 +349,14 @@ namespace Microsoft.AspNet.Mvc.Core.Test throw new NotImplementedException(); } + public bool ContainsKey(string key) + { + return _dictionary.ContainsKey(key); + } + public string this[string key] { - get { return this.dictionary[key]; } + get { return _dictionary[key]; } } public IEnumerator> GetEnumerator()