Skip to content
This repository was archived by the owner on Nov 20, 2018. It is now read-only.

Commit f0108cd

Browse files
committed
Add one more check to test
1 parent c32349c commit f0108cd

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/Microsoft.AspNet.Http.Tests/ResponseCookiesTest.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,13 @@ public void DeleteCookieShouldSetDefaultPath()
1414
{
1515
var headers = new HeaderDictionary();
1616
var cookies = new ResponseCookies(headers);
17+
var testcookie = "TestCookie";
1718

18-
cookies.Delete("TestCookie");
19+
cookies.Delete(testcookie);
1920

20-
Assert.Contains("path=/", (string)headers[HeaderNames.SetCookie]);
21+
string cookieHeaderValue = headers[HeaderNames.SetCookie];
22+
Assert.StartsWith(testcookie, cookieHeaderValue);
23+
Assert.Contains("path=/", cookieHeaderValue);
2124
}
2225

2326
}

0 commit comments

Comments
 (0)