Skip to content

Commit

Permalink
Pass expectation as the first argument (#2261)
Browse files Browse the repository at this point in the history
  • Loading branch information
jnyrup authored Jul 23, 2023
1 parent 60ca95b commit 42cfb93
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/PuppeteerSharp.Tests/CookiesTests/CookiesTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public async Task ShouldGetACookie()
Assert.Equal("John Doe", cookie.Value);
Assert.Equal("localhost", cookie.Domain);
Assert.Equal("/", cookie.Path);
Assert.Equal(cookie.Expires, -1);
Assert.Equal(-1, cookie.Expires);
Assert.Equal(16, cookie.Size);
Assert.False(cookie.HttpOnly);
Assert.False(cookie.Secure);
Expand Down Expand Up @@ -106,7 +106,7 @@ await Page.EvaluateFunctionAsync(@"() => {
Assert.Equal("1234", cookie.Value);
Assert.Equal("localhost", cookie.Domain);
Assert.Equal("/", cookie.Path);
Assert.Equal(cookie.Expires, -1);
Assert.Equal(-1, cookie.Expires);
Assert.Equal(12, cookie.Size);
Assert.False(cookie.HttpOnly);
Assert.False(cookie.Secure);
Expand All @@ -117,7 +117,7 @@ await Page.EvaluateFunctionAsync(@"() => {
Assert.Equal("John Doe", cookie.Value);
Assert.Equal("localhost", cookie.Domain);
Assert.Equal("/", cookie.Path);
Assert.Equal(cookie.Expires, -1);
Assert.Equal(-1, cookie.Expires);
Assert.Equal(16, cookie.Size);
Assert.False(cookie.HttpOnly);
Assert.False(cookie.Secure);
Expand Down Expand Up @@ -157,7 +157,7 @@ await Page.SetCookieAsync(
Assert.Equal("tweets", cookie.Value);
Assert.Equal("baz.com", cookie.Domain);
Assert.Equal("/", cookie.Path);
Assert.Equal(cookie.Expires, -1);
Assert.Equal(-1, cookie.Expires);
Assert.Equal(11, cookie.Size);
Assert.False(cookie.HttpOnly);
Assert.True(cookie.Secure);
Expand All @@ -168,7 +168,7 @@ await Page.SetCookieAsync(
Assert.Equal("woofs", cookie.Value);
Assert.Equal("foo.com", cookie.Domain);
Assert.Equal("/", cookie.Path);
Assert.Equal(cookie.Expires, -1);
Assert.Equal(-1, cookie.Expires);
Assert.Equal(10, cookie.Size);
Assert.False(cookie.HttpOnly);
Assert.True(cookie.Secure);
Expand Down

0 comments on commit 42cfb93

Please sign in to comment.