RepoMicrosoftMicrosoftpublished Oct 5, 2016seen 6d

microsoft/vs-validation

C#

Open original ↗

Captured source

source ↗
published Oct 5, 2016seen 6dcaptured 6dhttp 200method plain

microsoft/vs-validation

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

Language: C#

License: NOASSERTION

Stars: 138

Forks: 28

Open issues: 7

Created: 2016-10-05T13:37:49Z

Pushed: 2026-06-20T02:49:47Z

Default branch: main

Fork: no

Archived: no

README: Microsoft.VisualStudio.Validation =================================

![Build Status](https://dev.azure.com/azure-public/vside/_build/latest?definitionId=11&branchName=main) ![codecov](https://codecov.io/gh/Microsoft/vs-validation)

This project is available as the [Microsoft.VisualStudio.Validation][1] 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");

[1]: http://www.nuget.org/packages/Microsoft.VisualStudio.Validation "Microsoft.VisualStudio.Validation NuGet package"

Notability

notability 5.0/10

New validation tool repo with modest traction.