3.0.1.0
Metadata
Authors | Chris F Carroll |
---|---|
Copyrights | Copyright Chris F Carroll, 2013 |
Description | *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> AutoMocksAndFakes -------------------------------- is in development and currently works non-recursively. It auto-constructs the UnitUnderTest. It identifies constructor dependencies by name and type, looking in the following places: 1) Fields in the TestFixture class 2) Entries in the Mocks[] or Fake[] dictionaries 3) Finally it creates a Mock (if it's a mockable type) or a default instance (if its sealed, or value type) for anything that's missing ChangeLog --------- 2.0.5.0 adds some intellisense and FakeDbConnection.Verify(..., message,args) overload |
Owners | Chris F Carroll |
ProjectUrl | http://github.com/chrisfcarroll/TestBase |
ReleaseNotes | Version 1. Unpolished but in use for over a year |
RequireLicenseAcceptance | False |
Summary | *TestBase* for a flying start to unit testing. A rich extensible set of fluent assertions such as ShouldNotBeEmpty().ShouldEqualByValue() etc, and a set of Fake Ado.Net components, with 1 line setup and verification. |
Tags | nunit tdd fluent assertions mock ado.net |
Dependencies | Moq:4.0.10827|NUnit:2.6.2 |
Title | TestBase |
PackageSize | 133375 |
PackageHashAlgorithm | SHA512 |
PackageHash | mVYXEHEl9JS0hB6vb1Ad75hP033XX/uWxUBo5qwJzbofeE9agHXwDFNvCx9nNllEiI+WAipgYvEokQBRSW2UQA== |
DownloadCount | 000000 |
CreatedDate | 2013-11-28T19:46:27 |
Access
You can access data for this version using the tools and addresses described below.
NuGet (nuget.exe)
- Installing the package (HTTP Basic authentication):
-
nuget install TestBase -Version 3.0.1.0 -Source http://nuget.gw.symbolsource.org/Public/NuGet/FeedService.mvc
- Installing the package (pre-authenticated):
-
nuget install TestBase -Version 3.0.1.0 -Source http://nuget.gw.symbolsource.org/Public/%login%/%key%/NuGet/FeedService.mvc
- Deleting the package from the server (for each registered key):
-
nuget delete TestBase 3.0.1.0 %key% -Source http://nuget.gw.symbolsource.org/Public/NuGet
NuGet (Package Manager Console)
- Installing the package (HTTP Basic authentication):
-
Install-Package TestBase -Version 3.0.1.0 -Source http://nuget.gw.symbolsource.org/Public/NuGet/FeedService.mvc
- Installing the package (pre-authenticated):
-
Install-Package TestBase -Version 3.0.1.0 -Source http://nuget.gw.symbolsource.org/Public/%login%/%key%/NuGet/FeedService.mvc
OpenWrap
- Installing the package:
-
o add-wrap TestBase -Version 3.0.1.0
- Uninstalling the package:
-
o remove-wrap TestBase
Compilations
A compilation is created for every set of binaries produced from a single unchanged set of sources in different compilation modes (Debug, Release), for different platforms (x86, x64) or targetting different frameworks.
Profile | Mode | Platform | Related |
---|---|---|---|
AnyCPU | Release | .NETFramework,Version=v4.0 | Binaries |