10 packages returned for ensure.that

Package type
Sort by
.NET Core 2.0 & Standard 2.0 port of A simple guard clause project helping you with validation and uniformed exception throwing when validating arguments.
  • 19,319 total downloads
  • last updated 12/12/2013
  • Latest version: 1.0.1
Adds arg checking using delegates for cleanness. Call Ensure.That(()=>param, rules). Each rule is represented by the Rule<T> delegate and throw exceptions when their conditions are violated. Basic rules are provided.
This project is inspired by Ensure.That developed by Daniel Wertheim. The purpose of this library is to allow common validation checks to be easily made.
A lightweight and extensible guard clause library. Example: Ensure.Arg(param1, "param1").IsNotNull(); The library is easily extensible through the use of extension methods. Even the main Ensure.Arg(...) call can be overridden to whatever you prefer e.g. Verify.That(...) See the project site for... More information