NUnit.Framework.Assert.IsInstanceOfType() is obsolete
Posted
by Malice
on Stack Overflow
See other posts from Stack Overflow
or by Malice
Published on 2010-04-17T12:56:13Z
Indexed on
2010/04/17
13:03 UTC
Read the original article
Hit count: 741
I'm currently reading the book Professional Enterprise .NET and I've noticed this warning in some of the example programs:
'NUnit.Framework.Assert.IsInstanceOfType(System.Type, object)' is obsolete
Now I may have already answered my own question but, to fix this warning is it simply a case of replacing Assert.IsInstanceOfType() with Assert.IsInstanceOf()? For example this:
Assert.IsInstanceOfType(typeof(ClassName), variableName);
would become:
Assert.IsInstanceOf(typeof(ClassName), variableName);
© Stack Overflow or respective owner