Provide a When that throw the exception

Can you provide an overload for When<T> that throws the exception or like nUnit, a ThenThrow<T> that returns the exception thrown?

Id #150 | Release: None | Updated: Feb 1, 2013 at 3:04 AM by LauriSaar | Created: Aug 18, 2011 at 5:28 PM by raffaeu

Make Behavioral entirely fluent

GivenThat() .And() .And() .When() .Then() .And();

Id #149 | Release: None | Updated: Feb 1, 2013 at 3:04 AM by LauriSaar | Created: Aug 17, 2011 at 7:01 PM by garymcleanhall

Destroy context on GivenThat

Ensure that all context in the extension class dictionaries is destroyed on starting a new test.

Id #148 | Release: None | Updated: Feb 1, 2013 at 3:04 AM by garymcleanhall | Created: Aug 17, 2011 at 7:00 PM by garymcleanhall

Split IInitializerWithTearDown

Interface Segregation Principle:   IInitializer ITearDown IErrorHandler   Etc...

Id #135 | Release: None | Updated: Feb 1, 2013 at 3:04 AM by garymcleanhall | Created: Aug 5, 2011 at 9:13 PM by garymcleanhall

Allow Then to accept delegate

Less is more!   Rather than having to wrap a single assertion statement in a class, allow a delegate to be accepted as an argument to Then and the fluent interface's And.   For UnitTest<TTarget, ...

Id #134 | Release: Behavioral Beta | Updated: Feb 1, 2013 at 3:04 AM by garymcleanhall | Created: Aug 4, 2011 at 10:59 AM by garymcleanhall

In some scenarios, Actions may be Initializations

initializations should be reusable as actions.   Ordinarily, this might be achievable via an adapter:   GivenThat<InitializerIsRun>();   When<Adapted<InitializerIsRun>>();   But this interrupts th...

Id #130 | Release: Behavioral Beta | Updated: Feb 1, 2013 at 3:04 AM by garymcleanhall | Created: Jul 31, 2011 at 8:39 PM by garymcleanhall

Allow When clause to be optional

The When clause need not be mandatory. The preconditions may imply postconditions without and intermediate action.   At the moment, the only reason that When is required is because it calls the ini...

Id #129 | Release: Behavioral Beta | Updated: Feb 1, 2013 at 3:04 AM by garymcleanhall | Created: Jul 30, 2011 at 11:21 PM by garymcleanhall

Target CLR 2.0

The only part of CLR 3.5 that is 'required' is extension methods.   However, this can be circumvented by defining:   namespace System.Runtime.CompilerServices { [AttributeUsage(AttributeTargets.Ass...

Id #128 | Release: Behavioral Beta | Updated: Feb 1, 2013 at 3:04 AM by garymcleanhall | Created: Jul 29, 2011 at 8:24 AM by garymcleanhall

Allow context data to be named

Calling SetContext more than once with the same type argument will take only the latest version. Allowing context data be added and retrieved with names can help get around this.

Id #127 | Release: Behavioral Beta | Updated: Jun 11, 2013 at 12:39 AM by garymcleanhall | Created: Jul 28, 2011 at 4:01 PM by garymcleanhall

Throw when ThenThrow is called amid Then calls.

ThenThrow is mutually exclusive with any other assertions.

Id #126 | Release: Behavioral Beta | Updated: Feb 1, 2013 at 3:04 AM by garymcleanhall | Created: Jul 28, 2011 at 3:59 PM by garymcleanhall

  • 1-10 of 10 Work Items
    • Previous
    • 1
    • Next
    • Showing
    • 10
    • Work Items