This project is read-only.

Sharp Tests Extensions 0.1.0

Rating: No reviews yet
Downloads: 33
Released: Aug 6, 2009
Updated: Aug 7, 2009 by fabiomaulo
Dev status: Alpha Help Icon

Recommended Download

Application SharpTestsEx
application, 21K, uploaded Aug 7, 2009 - 33 downloads

Release Notes

#TestsEx Apla1


#TestsEx (Sharp Tests Extensions) is a set of extensible extensions to work with MsTests. The main target is write short assertions where the Visual Studio IDE intellisense is your guide.


The entry point of each assertion is the method Should() or its override Should(string) where the parameter is the title of the assertion (the message in MsTests terminology). After Should(). the intellisense become "your friend".

In general, each assertion allow negation (Should().Not.) and chain through .And..
Negation and .And. chain are available only where it has sense.

Where the assertion imply a cast, the additional property And.ValueOf. is available to begin a new assertion based on one of the properties of casted original actual value (examples are available below).


#TestsEx is so easy to extend that, the mayor part of its assertions, was implemented using extension points.
For Example:

public static class ClassConstraintsExtensions
public static IAndConstraints<IClassConstraints> SameInstanceAs(this IClassBeConstraints constraint, object expected)
constraint.AssertionInfo.AssertUsing(new Constraint<object, object>("Be Same As", expected,
a => ReferenceEquals(a, expected)));
return ConstraintsHelper.AndChain(constraint.AssertionParent);

State of the art

Even if this is the first alpha the project is ready to be used. It need some improvement about Failure Messages and, over all, your ideas.
The full syntax overview is available here.

Reviews for this release

No reviews yet for this release.