-
Notifications
You must be signed in to change notification settings - Fork 158
InstanceOfTypeConstraint
jnm2 edited this page Jun 14, 2017
·
4 revisions
InstanceOfTypeConstraint tests that an object is of the type supplied or a derived type.
InstanceOfTypeConstraint(Type)
Is.InstanceOf(Type)
Is.InstanceOf<T>()
Assert.That("Hello", Is.InstanceOf(typeof(string)));
Assert.That(5, Is.Not.InstanceOf(typeof(string)));
Assert.That(5, Is.Not.InstanceOf<string>());
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