Commit Graph

6 Commits

Author SHA1 Message Date
Alex Maitland fa4a37a8b0 Core - Add EvaluateScriptAsync<T>(string script) extension method
- Add generic overload that uses the DefaultBinder (with CamelCaseNaming)
  to perform type conversion
2023-03-10 18:37:42 +10:00
Alex Maitland d960f98dd4 Test - CookieManagerTests.ShouldSetAndGetCookie adjust Date comparison
- Test was failing when run on Appveyor, use Assert.Equal with a 1second tolerance
2023-02-17 18:48:39 +10:00
Alex Maitland abefe829ae Test - Improvements
- Use LangVersion to 8.0
- Minor cleanup
2023-02-17 18:04:30 +10:00
Alex Maitland d0b06b3105 Test - CookieManagerTests rename method 2023-02-17 16:52:03 +10:00
Alex Maitland cafd378859 Test - Code Cleanup
- Start splitting tests out into own files where relevant
- Improve call ordering
- Use Assert.RaisesAsync where possible
- Classes have been renamed (Tests is now the standard suffix)

TODO: Some of the classes still need their method names changed
2023-02-17 13:53:23 +10:00
Alex Maitland beca2863a8 Core - Migrate from CefTime to CefBaseTime (CookieManger Tests)
- Add basic xUnit test
- Don't set Creation/LastAccess on cookie creation, these are set internally in Chromium
  and are left uninitialized until the cookie is read back from the browser

I haven't tested though I suspect Cookie.Expiry was incorrectly set when Local/Unspecified DateTime was used
cookies are always in GMT

Issue #4234
2022-09-07 10:56:29 +10:00