CheckNET.Core
0.3.0
dotnet add package CheckNET.Core --version 0.3.0
NuGet\Install-Package CheckNET.Core -Version 0.3.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CheckNET.Core" Version="0.3.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CheckNET.Core --version 0.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CheckNET.Core, 0.3.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install CheckNET.Core as a Cake Addin #addin nuget:?package=CheckNET.Core&version=0.3.0 // Install CheckNET.Core as a Cake Tool #tool nuget:?package=CheckNET.Core&version=0.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Getting Started
Install-Package CheckNET.Core
Or pull in the NuGet package through Package Manager.
Once installed, your Asserts in any NUnit test can be replaced with Check.That statements.
Extensions
Object Extensions
These extensions apply to all types, since all types inherit object in C#.
object.IsNotNull() - Passes if the object is Not Null.
object.IsNull() - Passes if the object is Null.
object.IsEqual(object otherValue) - Passes if the object is equal to the other value passed in.
String Extensions
These extensions apply to all strings.
string.IsNotEmpty() - Passes if the string is not an empty string.
string.IsEmpty() - Passes if the string is an empty string.
string.IsNotNullOrEmpty() - Passes if the string is not null or empty.
string.IsNullOrEmpty() - Passes if the string is null or empty.
string.ContainsThese(IEnumerable<string> elementsToLookFor) - Passes if the string contains all of the elements in the IEnumerable<string>.
string.MeetsCondition(Func<string, bool> condtion) - Passes if the string meets the bool condition passed in as an anonymous method.
Int and Nullable Int Extensions
These extensions apply to both Ints and Nullable<int>.
int.IsDivisibleBy(int divisor) - Passes if int is divisible by divisor with no remainder.
int?.IsDivisibleBy(int? divisor) - Passes if int? is divisible by divisor? with no remainder.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net461 is compatible. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Added support for xunit.