CrabScout. The best software around.
Search

Guard Clauses

Write short checks that reject invalid inputs at the beginning of a function.

ardalis · Code and testing

GitHub projectOpen source Open on GitHub

How to try it

Add Ardalis.GuardClauses 5.0.0 to a .NET project. Reject a sample out-of-range number and confirm valid input is returned unchanged.

What we tested

5.0.0. Reject a sample out-of-range number and confirm valid input is returned unchanged. The negative test value raised the expected error and the valid count stayed 7.

Reviews

Rate this repo

More to explore

  • GleamWrite typed code for the Erlang virtual machine or JavaScript.GitHub projectOpen source
  • PixiSet up reproducible software environments for projects.GitHub projectOpen source
  • LycheeCheck that document links point to reachable paths.GitHub projectOpen source

Share

What the labels mean

Save to your library