- #173 - Stop crash when in release mode
- #165 - Show count when .ShouldBeEmpty() fails for IEnumerable contributed by Matt Kocaj (cottsak)
- #164 #167 - Ignore case = true breaks comparison for yield break/yield return methods
- #160 - Multiple Assertions - see https://github.com/shouldly/shouldly#shouldSatisfyAllConditions
- #105 - "Length cannot be less than zero" at Shouldly.ShouldlyMessage.ToString()
Commits: 8b59f323d5...b3c8952b72
- #155 - Fix hardcoded datetimes in tests contributed by Ilya Murzinov (ilya-murzinov)
- #151 #149 - ShouldBe tolerance for dates contributed by Ben Scott (bendetat)
- #148 - Improving the messages for the Dictionary failure scenarios. contributed by Chaitanya Gurrapu (chaitanyagurrapu)
- #145 #138 - Implementing the 'DynamicShould.HaveProperty' functionality. contributed by Chaitanya Gurrapu (chaitanyagurrapu)
- #144 - Add ShouldBeUnique for collections contributed by Ilya Murzinov (ilya-murzinov)
- #143 - Dictionary "ShouldNotContainKeyAndValue" shows slightly incorrect message
- #50 - ShouldAll for IEnumerables
Commits: b0516804c0...81cad48f85
- #135 - Should be on a list of strings fails +fix
- #126 - Tasks now timeout after 10 seconds
- #136 - Should be on a list of strings fails
- #132 - ShouldBe for IEnumerable with IgnoreOrder = true fails if objects are not IComparable contributed by Asger Hallas (asgerhallas)
- #131 - Case enum on string asserts could be renamed
- #109 - Task.ShouldCompleteIn (equivalent to NUnit Timeout Attribute) contributed by Gert Jansen van Rensburg (gertjvr)
Commits: 6c29deca2c...40cea808b7
- #124 - Swap expected and actual in Is.Equal contributed by vorou (vorou)
- Fixed boxed numeric equality issues #121
- Equality should use expected.Equals not actual.Equals #120
Thanks to vorou and Jake Ginnivan for contributing to this release
Commits: 954bb795dd...43e3aff8e4
- IEnumerable matching failures fixes #118 #100
- Equality fixes #115
- Fails on comparing arrays #111
- Equality of multidimensional arrays is throwing #107
This release fixes a few major breaking changes in 2.0.0
Thanks to James Kelly vorou and Jake Ginnivan for contributing to this release
Commits: fb2be376c2...0912db75e6
- Fix possible deadlock in
Should.[Not]Throw(Func<Task>)
#101 +Fix
Commits: b8439790d5...2d3d40afd9
- breaking: Removed ShouldBeCloseTo #94 #46
- breaking: ShouldBeGreaterThan and ShouldBeLessThan are now constrained to
IComparable<T>
- breaking: Method Grouping on Should.Throw no longer works due to async overloads
- breaking: IEnumerable.ShouldBe(IEnumerable) now uses .Equals to compare
- specify T to get Item Comparison (
new[]{"foo"}.ShouldBe<string>(new[]{"foo"})
for item comparison, or specifyignoreOrder
to select IEnumerable overload - See Breaking Changes.txt for more information
- specify T to get Item Comparison (
- breaking:
ShouldBeTypeOf<T>
renamed toShouldBeAssignableTo<T>
#98 ShouldBeOfType<T>
added for exact match of type,ShouldBeAssignableTo<T>
allows derived classes #98- ShouldBeTypeOf should return the object #63 +Enhancement
- ShouldAllBe for IEnumerables #60 +Enhancement
- ShouldBeOneOf(params) #58 #72 +Enhancement
- Allowed ignore ordering on enumerables on .ShouldBe #93 #92 +Enhancement
- Task/async support for Should.Throw and Should.NotThrow #88 #69 #76 +Enhancement
- Added ShouldBeSubsetOf() for IEnumerables #87 #71 +Enhancement
- ShouldBeNullOrEmpty for strings #85 #70 +Enhancement
- ShouldBeInRange and ShouldNotBeInRange #73 #53 +Enhancement
- Exception when attempting to calculate stacktrace, only in CI #84 #49 #62 +fix
- Missing Should.BeLessThanOrEqualTo mirror of BeGreaterThanOrEqualTo #82 +fix
- Should.NotThrow returns thrown exception #68
- JToken.Parse("{}").ShouldBe("hello"); Passes #65 #66 +fix
- ChuckedAWobbly should be serializable #64
note: When shouldly is running under .net 4.0 (this affects old versions too) a shouldly assertion inside a compiled lambda will give an incorrect error message (if you do this, let us know why). See #80
Thanks to Sam Salisbury Ben Scott James Kelly Ilya Murzinov Kővágó Zoltán Jake Ginnivan Egbert Teeselink for contributing to this release!
Commits: c855ea41eb...d16284be27
- Truncate error string "actual" output on `ShouldContain to 100 chars #37 42
- Remove dependency on Rhino.Mocks #51
Commits: 1545f74a2e...5b07fdfd97
- Sign Shouldly.dll #40
- ShouldBe on two IEnumerables of different static types doesn't show differences #39
- Allow tolerance when comparing collections of doubles #38
Should.(Not)BeNull(obj)
#36- custom error messages #35
- Deprecate Rhino.Mocks #34
- Split core features from rhino mocks dependent code #30
- Additional Assertions #21
Commits: 729e91f570...4f67b23cda
- added
string.ShouldBe(string, Case)
#33 - Fixed bug with
ShouldBeTypeOf<T>
assert method #32 - Fixed bug with
ShouldBeTypeOf<T>
assert method #31 - Specs (BDDish) extension #29
ShouldBeEqualIgnoringCase
#28- #20 -
Should.Throw
should return the exception itself #27 - Comparing null IEnumerables results in NullRef in Difference Highlighter #26
ShouldBeSameAs
and ShouldNotBeSameAs #25ShouldBeSameAs
(Reference equality) #24Should.Throw
barfs if no exception thrown at all #23- InternalsVisibleTo causes issues when using NUnit for tests #22
Should.Throw
should return the exception itself #20ShouldContain
and ShouldNotContain withPredicate<T>
#19- Issue 5 - Highlight differences in collections #18
- Add
ShouldNotHaveBeenCalled()
#17 - Add support for Rhino Method Options #16
- Added
NUnitAssemblyResolver.WireUp()
to resolve issue #8 #15 ShouldMatch(pattern, regexOptions)
#14ShouldBeGreaterThanOrEqualTo
#13- Added
ShouldBeGreaterThanOrEqualTo
#12 - Refactored solution for issue #3 #11
- Tests and code for issue #3 #10
- Add support for XUnit #9
- Add support for NUnit versions > 2.5.3 #8
- Build/Deploy Gem/Binary #7
- Gem for Nu #6
- When comparing collections should highlight different items #5
- vs2010 sln and proj files #4
- Support for tolerance on enumerations of floating point numbers. #3
- Simple additions #2
- Added startswith and endswith as well as an alias for
ShouldBeCloseTo
#1 - Add ShouldNotHaveBeenCalled() 17
- Add support for Rhino Method Options 16
Commits: a3bb9f5598...08c4ebfa29