Merge pull request #363 from microsoft/dev/andarno/libtemplateUpdate Merge latest Library.Template
Merge pull request #363 from microsoft/dev/andarno/libtemplateUpdate
Merge latest Library.Template
This project is available as the Microsoft.VisualStudio.Validation NuGet package.
Basic input validation via the Requires class throws an ArgumentException.
Requires
Requires.NotNull(arg1, nameof(arg1)); Requires.NotNullOrEmpty(arg2, nameof(arg2));
State validation via the Verify class throws an InvalidOperationException.
Verify
Verify.Operation(condition, "some error occurred.");
Internal integrity checks via the Assumes class throws an InternalErrorException.
Assumes
Assumes.True(condition, "some error");
Warning signs that should not throw exceptions via the Report class.
Report
Report.IfNot(condition, "some error");
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802047560号
Microsoft.VisualStudio.Validation
This project is available as the Microsoft.VisualStudio.Validation NuGet package.
Basic input validation via the
Requiresclass throws an ArgumentException.State validation via the
Verifyclass throws an InvalidOperationException.Internal integrity checks via the
Assumesclass throws an InternalErrorException.Warning signs that should not throw exceptions via the
Reportclass.