-
Notifications
You must be signed in to change notification settings - Fork 154
Assert.NotZero
Mikkel Nylander Bundgaard edited this page May 25, 2017
·
3 revisions
Assert.NotZero tests that a value is not zero.
Assert.NotZero( int actual );
Assert.NotZero( int actual, string message, params object[] args );
Assert.NotZero( uint actual );
Assert.NotZero( uint actual, string message, params object[] args );
Assert.NotZero( long actual );
Assert.NotZero( long actual, string message, params object[] args );
Assert.NotZero( ulong actual );
Assert.NotZero( ulong actual, string message, params object[] args );
Assert.NotZero( decimal actual );
Assert.NotZero( decimal actual, string message, params object[] args );
Assert.NotZero( double actual );
Assert.NotZero( double actual, string message, params object[] args );
Assert.NotZero( float actual );
Assert.NotZero( float actual, string message, params object[] args );
You may also use Assert.That with a Is.Not.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