HmxLabs.TestExt 0.1.0

.NET Framework 4.5
Install-Package HmxLabs.TestExt -Version 0.1.0
dotnet add package HmxLabs.TestExt --version 0.1.0
<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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: HmxLabs.TestExt, 0.1.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. 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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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)


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


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


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 Versions
.NET Framework net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48
Compatible target framework(s)
Additional computed target framework(s)
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 563 9/13/2018