TestBase 1.0.4

There is a newer version of this package available.
See the version list below for details.
dotnet add package TestBase --version 1.0.4                
NuGet\Install-Package TestBase -Version 1.0.4                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="TestBase" Version="1.0.4" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add TestBase --version 1.0.4                
#r "nuget: TestBase, 1.0.4"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install TestBase as a Cake Addin
#addin nuget:?package=TestBase&version=1.0.4

// Install TestBase as a Cake Tool
#tool nuget:?package=TestBase&version=1.0.4                

*TestBase* gets you off to a flying start when unit testing projects with dependencies.
It offers a rich extensible set of fluent assertions and a set of verifiable Fake Ado.Net components, with easy setup and verification.

TestBase.Shoulds
------------------
Chainable fluent assertions get you to the point concisely
UnitUnderTest.Action()
 .ShouldNotBeNull()
 .ShouldContain(expected);
UnitUnderTest.OtherAction()
 .ShouldEqualByValue(
   new {Id=1, Payload=expectedPayload, Additional=new[]{ expected1, expected2 }}
);
* ShouldBe(), ShouldMatch(), ShouldNotBe(), ShouldContain(), ShouldNotContain(), ShouldBeEmpty(), ShouldNotBeEmpty(), ShouldAll() and many more
* ShouldEqualByValue() works with all kinds of object and collections
* Stream assertions include ShouldContain() and ShouldEqualByValue()

TestBase.FakeDb
------------------
Works with Ado.Net and technologies on top of it, including Dapper.
* fakeDbConnection.SetupForQuery(fakeData, new[] {"FieldName1", FieldName2"})
* fakeDbConnection.SetupForExecuteNonQuery(rowsAffected)
* fakeDbConnection.Verify(x=>x.CommandText.Matches("Insert [case] .*") && x.Parameters["id"].Value==1)

TestBase.TestBase<T> Automocking
--------------------------------
is in development and currently works for easy cases:
Identifies constructor dependencies by name and type and looks in the following places:
First, fields in the TestFixture class
Second, entries in the Mocks[] or Fake[] dictionaries
Third, mocks or defaults anything that's missing

Product Compatible and additional computed target framework versions.
.NET Framework net40 is compatible.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.0.2 313 12/27/2013
3.0.1.1 48 12/23/2013
3.0.1 73 11/28/2013
2.0.5 49 11/28/2013
2.0.4.1 47 11/12/2013
2.0.4 47 11/12/2013
2.0.3.1 47 11/8/2013
2.0.3 64 11/7/2013
2.0.2 46 11/7/2013
2.0.1 54 11/1/2013
1.0.4 51 10/31/2013
1.0.3 55 10/23/2013

Version 1. Unpolished but in use for over a year