HmxLabs.TestExt 0.1.0

dotnet add package HmxLabs.TestExt --version 0.1.0
NuGet\Install-Package HmxLabs.TestExt -Version 0.1.0
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="HmxLabs.TestExt" Version="0.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add HmxLabs.TestExt --version 0.1.0
#r "nuget: HmxLabs.TestExt, 0.1.0"
#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 HmxLabs.TestExt as a Cake Addin
#addin nuget:?package=HmxLabs.TestExt&version=0.1.0

// Install HmxLabs.TestExt as a Cake Tool
#tool nuget:?package=HmxLabs.TestExt&version=0.1.0

HMx Labs Test Ext

Test Ext is essentially just utility code to help more concise, fluent and reusable test code. Operating on the principle that your test cases are as important if not more important than your production code we started to write the sorts of helper and utility code that you’d normally see for production code but targeted at writing good tests.

The code depends on HMx Labs Core and relies on usage of some of the interfaces that the core library defines.

Broadly it provides the following

  • Mock network interface implementation (HmxLabs.Core.Net.INetworkInterface)

  • NUnit constraints to allow logging output to be tested. Allows writing code like:

Assert.That(logger, HasNotLogged.Above(LogLevel.Info))

As part of your test cases. Useful when using unit test frameworks to do component level testing.

  • NUnit constraints to allow nice test code for serialization code such that you can write code like
Assert.That(myObject, Serializes.With(mySerializer).ToFileContents(myReferenceFile)
Assert.That(myTestFile, Deserializes.With(mySerializer).FromFile().AndPasses(objectToTest => Assert.AreEqual(referenceObject, objectToTest)

Documentation

Most of the code is commented inline, however there is no good documentation showing examples or use cases currently.

Downloads

All versions are available either packaged as a NuGet package from NuGet or as a zip artefact from the HMx Labs website

License

HMx Labs Core is Open Source software and is licensed under an MIT style license. This allows use in both free and commercial applications without restriction. The complete licence text is available on the HMx Labs website or here

Contributing, Bug Reports and Support

If you’ve found a bug or thought of a new feature that would be useful feel free to either implement it and raise a pull request for us or if you’d like us to take a look then just get in touch.

Support is provided very much on a best effort only basis and by electronic means (emails, pull requests, bug reports etc) only.

Unless you’re a client of HMx Labs of course, in which case just give us a call!

Product Compatible and additional computed target framework versions.
.NET Framework net45 is compatible.  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.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.1.0 758 9/13/2018