-
Notifications
You must be signed in to change notification settings - Fork 154
Assert.Zero
Mikkel Nylander Bundgaard edited this page May 25, 2017
·
3 revisions
Assert.Zero tests that a value is zero.
Assert.Zero( int actual );
Assert.Zero( int actual, string message, params object[] args );
Assert.Zero( uint actual );
Assert.Zero( uint actual, string message, params object[] args );
Assert.Zero( long actual );
Assert.Zero( long actual, string message, params object[] args );
Assert.Zero( ulong actual );
Assert.Zero( ulong actual, string message, params object[] args );
Assert.Zero( decimal actual );
Assert.Zero( decimal actual, string message, params object[] args );
Assert.Zero( double actual );
Assert.Zero( double actual, string message, params object[] args );
Assert.Zero( float actual );
Assert.Zero( float actual, string message, params object[] args );
You may also use Assert.That with a Is.Zero constraint to achieve the same result.
Copyright (c) 2018 The NUnit Project - Licensed under CC BY-NC-SA 4.0
-
NUnit
-
Release Notes
-
License
- Getting Started
- Writing Tests
- Running Tests
- Extending NUnit
- Technical Notes
-
Release Notes
- NUnit Xamarin Runners
- VS Test Adapter
- VS Test Generator
- NUnit Analyzers