Skip to content

2.2.0

Compare
Choose a tag to compare
@Moreault Moreault released this 11 Jan 12:11
· 122 commits to master since this release
6e4a60a

What's new

  • The new Ensure class adds automatic common case testing such as Json serialization, value equality, value hash code, null/empty/white space strings and more
  • A new RecordTester base class automatically tests records for common cases such as value equality and value hash codes
  • A JsonSerializerOptions property was added to the base Tester class to help with the new Ensure class but also to be used for "globally" for a tester class
  • InstanceProvider grants you the means to automatically create an instance of a tested type in the same way that Tester and Tester<T> do
  • A Clone extension method on System.Object gives you the means to clone an object for testing purposes using System.Text.Json first and reflection as a fallback
  • Added a Stack<T> [AutoCustomization] as AutoFixture cannot make one by default using Fixture.Create<Stack<T>>()

Leaving soon

Eloquentest 3.0.0 will be more of a tool box to build your own base tester classes and choose your own dependencies. The FixtureProvider and InstanceProvider static classes are a step in that direction.