Sharp Tests Extensions 0.2.0

Rating: No reviews yet
Downloads: 27
Released: Aug 12, 2009
Updated: Aug 12, 2009 by fabiomaulo
Dev status: Alpha Help Icon

Recommended Download

Application SharpTestsEx
application, 29K, uploaded Aug 12, 2009 - 27 downloads

Release Notes

#TestsEx Apla2

#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.

Notes

The fluent assertion API is pretty done and now it has more clear failure messages as for example:

"Value Ender test".Should().Be.EqualTo("Value under test");
which failure message is:
"Value Ender test" Should Be Equal To "Value under test".
Strings differ at position 7.
Value Ender test
Value under test

(new[] {4,5,6,1,2,3}).Should().Have.SameSequenceAs(4,5,7,1,2,3);
which failure message is:
[4, 5, 6, 1, 2, 3] Should Have Same Sequence As [4, 5, 7, 1, 2, 3].
Values differ at position 2 (zero based).
Expected: 7
Found   : 6


(new[] {4,5,6}).Should().Be.SubsetOf(9,4,6,1);
which failure message is:
[4, 5, 6] Should Be Subset Of [9, 4, 6, 1].
Differences :[5]


Similar messages are available for the others constraints.

More info are available here.

Reviews for this release

No reviews yet for this release.