Today was released Expect for .NET 1.1.38. The new release contains a few minor changes in API, some improvements for users and changes in existing implementation.
New version can be downloaded from github or nuget.
Expect for .NET 1.1.38 change log
In the current release was implemented following stories:
- 14582: I want to create nuget package using build scripts
- 14587: I want to set version of assemblies and NuGet packages from build scripts
- 14964: I want to have fully synchronous Expect implementation instead of wrappers of async functions
- 13797: I want to remove disambiguation between System.TimeoutException and Expect.TimeoutException
- 13798: I want to have properties and function descriptions in VisualStudio
- 13799: I want to have async variants of Expect function
Changes in API
The Expect.TimeoutException was removed and replaced with System.TimeoutException.
The setTimeout and getTimeout methods were marked as obsolete. The old methods are replaced with SetTimeout and GetTimeout methods.
There were added async ExpectAsync methods. Thanks to that now it’s possible to use async and await.
Changes in implementation
The Expect methods were refactored to be fully synchronous. In former implementation it was wrappers on async methods, what was potentially unsafe when used with UI.
Changes not related to code
It was created psake script to automate assembly and nuget creation.
There were added documentation comments, so IntelliSense will show element descriptions.
Expect for .NET 1.1.38 introduced few changes in API, but only changes related to TimeoutException affect old code. To fix the old code one must replace Expect.TimeoutException with System.TimeoutException.
Leave a Reply