- Notifications
You must be signed in to change notification settings - Fork30
Common input and integrity validation routines for Visual Studio and other applications
License
NotificationsYou must be signed in to change notification settings
microsoft/vs-validation
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This project is available as theMicrosoft.VisualStudio.Validation NuGet package.
Basic input validation via theRequires
class throws an ArgumentException.
Requires.NotNull(arg1,nameof(arg1));Requires.NotNullOrEmpty(arg2,nameof(arg2));
State validation via theVerify
class throws an InvalidOperationException.
Verify.Operation(condition,"some error occurred.");
Internal integrity checks via theAssumes
class throws anInternalErrorException.
Assumes.True(condition,"some error");
Warning signs that should not throw exceptions via theReport
class.
Report.IfNot(condition,"some error");
About
Common input and integrity validation routines for Visual Studio and other applications
Topics
Resources
License
Code of conduct
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.