Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Common input and integrity validation routines for Visual Studio and other applications

License

Notifications You must be signed in to change notification settings

dotdevelop/vs-validation

Open more actions menu
 
 

Repository files navigation

Microsoft.VisualStudio.Validation

NuGet package Build Status codecov

This project is available as the Microsoft.VisualStudio.Validation NuGet package.

Basic input validation via the Requires class throws an ArgumentException.

Requires.NotNull(arg1, nameof(arg1));
Requires.NotNullOrEmpty(arg2, nameof(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");

About

Common input and integrity validation routines for Visual Studio and other applications

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 70.6%
  • PowerShell 29.0%
  • Batchfile 0.4%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.