203 packages returned for ensure.that

.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.
  • 4,958 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.
  • 4,139 total downloads
  • last updated 5/7/2011
  • Latest version: 0.2.2
  • assert debug
Provides declarative way for checking conditions.
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
EnsureFramework is designed to take the pain out of null checking and making sure (ensuring) your methods are being used the way they were intended and throwing exceptions when unsupported values are passed to them. You can make sure values are in a specific range or simply make sure that an... More information
  • 4,042 total downloads
  • last updated 5/7/2015
  • Latest version: 1.9.150507.1
This core library provides a near full unit test platform but with a focus on runtime execution, diagnostics and performance. Over a traditional framework, TestThat offers pass rates and time constraints to tests. Tests can be existing methods or properties within existing code base made accesible... More information
Inpired by CodeContracts, small piece of code that allows you to lower the ciclomatic complexity of code by removing some branching. Branching like most precondition, if - else - throw or if - else - set value.