This repository has been archived by the owner on Jun 12, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 46
Changes in version 2.0
Adam Ralph edited this page Mar 17, 2015
·
32 revisions
- Based on xUnit 2.0 and supporting all new xUnit.net 2.0 features.
- Support for all platforms supported by xUnit.net 2.0 (Desktop .NET 4.5+, Windows 8.1+ (Universal)*, Windows Phone 8+ (Silverlight)*, Windows Phone 8.1+ (Universal)*, MonoTouch**, MonoAndroid**, Xamarin.iOS**, ASP.NET vNext**).
*Work in progress - untested, but provided in the current pre-release package.
**Work in progress - not yet provided in the current pre-release package.
-
Object disposal and Teardown is no longer performed in a separate test. Failure will be communicated in the same way that xUnit.net 2.0 communicates failure to run the
After()
method of aBeforeAfterTestAttribute
, i.e. an extra failed test will be shown in addition to the usual tests which are generated from the scenario. - The
Before()
andAfter()
methods of aBeforeAfterTestAttribute
are now called before and after each scenario is run. In xBehave.net 1.0, these methods were called before and after each step within a scenario was run.
-
Given()
,When()
,Then()
,And()
andBut()
. Usef()
or_()
instead. - Timeouts have been removed under the same rationale used for xUnit.net.
- Isolated steps have been removed as this is a rarely (if ever) used feature that adds considerable implementation overhead.
-
Object disposal without passing a context object to
Using()
(already deprecated in 1.x). - An undocumented feature which allows global continuation of step execution when certain types of step fail.
- An undocumented feature which allows omission of arguments from scenario names in test output.