Validation 2.6.68

Validation

Method input validation and runtime checks that report errors or throw exceptions when failures are detected.

Check out our full documentation.

Basic input validation via the Requires class throws an ArgumentException.

Requires.NotNull(arg1);
Requires.NotNullOrEmpty(arg2);

State validation via the Verify class throws an InvalidOperationException.

Verify.Operation(condition, "some error occurred.");

Internal integrity checks via the Assumes class throws an InternalErrorException.

Assumes.True(condition, "some error");

Warning signs that should not throw exceptions via the Report class.

Report.IfNot(condition, "some error");

Showing the top 20 packages that depend on Validation.

Packages Downloads
Xunit.SkippableFact
Make your Xunit test methods self-determine to report a "skipped" result. Useful for such cases as "not supported on this platform" results or other environmental inputs.
1,176
Xunit.SkippableFact
Make your Xunit test methods self-determine to report a "skipped" result. Useful for such cases as "not supported on this platform" results or other environmental inputs.
11
Xunit.SkippableFact
Make your Xunit test methods self-determine to report a "skipped" result. Useful for such cases as "not supported on this platform" results or other environmental inputs.
10
Xunit.SkippableFact
Make your Xunit test methods self-determine to report a "skipped" result. Useful for such cases as "not supported on this platform" results or other environmental inputs.
9
Xunit.SkippableFact
Make your Xunit test methods self-determine to report a "skipped" result. Useful for such cases as "not supported on this platform" results or other environmental inputs.
8
Nerdbank.Streams
Streams for full duplex in-proc communication, wrap a WebSocket, etc.
7
Xunit.SkippableFact
Make your Xunit test methods self-determine to report a "skipped" result. Useful for such cases as "not supported on this platform" results or other environmental inputs.
3

https://github.com/AArnott/Validation/releases/tag/v2.6.68

.NET Framework 3.5

  • No dependencies.

.NET Framework 4.6.2

  • No dependencies.

.NET 8.0

  • No dependencies.

.NET 9.0

  • No dependencies.

.NET Standard 2.0

  • No dependencies.

Version Downloads Last updated
2.6.68 10 02/20/2025
2.6.65-rc.2 11 02/20/2025
2.6.55-rc.1 11 02/20/2025
2.6.13-beta 11 02/20/2025
2.6.7-beta 11 02/20/2025
2.5.51 10 02/20/2025
2.5.42 11 02/20/2025
2.5.5-beta 11 02/20/2025
2.4.22 9 02/20/2025
2.4.18 1,055 08/06/2024
2.4.17 10 02/20/2025
2.4.15 10 02/20/2025
2.4.15-g8377954d86 11 02/20/2025
2.4.13 10 02/20/2025
2.4.10 10 02/20/2025
2.4.9 11 02/20/2025
2.4.7 11 02/20/2025
2.3.7 11 02/20/2025
2.3.5 11 02/20/2025
2.2.8 11 02/20/2025
2.2.5 11 02/20/2025
2.2.4 12 02/20/2025
2.0.6.15003 11 02/20/2025
2.0.5.14286 10 02/20/2025
2.0.4.14103 11 02/20/2025
2.0.3.13323 11 02/20/2025
2.0.2.13022 11 02/20/2025
2.0.1.12362 11 02/20/2025
2.0.0.12319 11 02/20/2025
1.0.0.12259 11 02/20/2025