public void Test_GetCookieFromContainer() { CookieContainer cookieContainer = new CookieContainer(); const string cookieName = "stub"; const string cookieValue = "stub value"; var cookieStub = new Cookie(cookieName, cookieValue); cookieContainer.Add(new Uri(SITE_URL), cookieStub); var cookiesCollection = CookiesHelper.GetAllCookies(cookieContainer); var cookieFromHelper = cookiesCollection[cookieName]; Assert.IsTrue(cookieFromHelper.Name == cookieName && cookieFromHelper.Value == cookieValue); }