Light.GuardClauses
Light.GuardClauses copied to clipboard
A lightweight .NET library for expressive Guard Clauses.
This feature should be implemented for double and float values. The assertions should be overloaded so that the tolerance can be specified by the caller. See `IsApproximately` for double and...
We should add the following assertions for `string`, `ReadOnlySpan` and `Span`: - `IsTrimmed`: checks if a character sequence starts and ends with a non-whitespace character, returns true or false. -...
I'm testing library for c# 8 support but it looks like it is not working `public static string Test(string? text) { text.MustNotBeNull(); return text.Substring(0, 1); }` With proper implementation there...