Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Yet another guard clause project for .Net C#'ers
C# PowerShell
Failed to load latest commit information.
deploy Hmm
src For deploy. Bumped etc.
.gitignore Rake replaced by phantom.
README.md Release notes.

README.md

Ensure.That

Ensure.That is a simple guard clause argument validation lib, that helps you with validation of your arguments.

Ensure.That(myString, "myString").IsNotNullOrWhiteSpace();

You can also easily extend it to use lambdas. Please note though, that you will lose performance, but look in the wiki and I'll show you how to enable it:

Ensure.That(() => myString).IsNotNullOrWhiteSpace()

Release notes

Available from v2.0.0, https://github.com/danielwertheim/Ensure.That/wiki/Release-notes

Portable libary or Source via NuGet

Ensure.That is distributed via NuGet. Either as a portable library (for .Net4+, Silverlight, Windows Phone, WinRT) or as an includable source package.

Documentation

The documentation is contained in the project wiki.

Get up and running with the source code

The main solution is maintained using Visual Studio 2013, but you should be able to use Visual Studio 2012, targetting multiple platforms using a portable class library (PCL).

Please note. No NuGet packages are checked in. If you are using the latest version of NuGet (v2.7.1+) you should be able to just build and the packages will be restored. If this does not work, you could install the missing NuGet packages using a simple PowerShell script as covered here

Unit-tests are written using xUnit and there are no integration tests, hence you should just be able to: Pull-Compile&Run the tests.

How-to Contribute

This is described in the wiki, under: "How-to Contribute".

Pull request should be against the develop branch

Issues, questions, etc

So you have issues or questions... Great! That means someone is using it. Use the issues function here at the project page or contact me via mail: firstname@lastname.se; or Twitter: @danielwertheim

License

The MIT License (MIT)

Copyright (c) 2013 Daniel Wertheim

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Something went wrong with that request. Please try again.