I am currently reading the book Professional Enterprise.NET and I have noticed this warning in some sample programs:
'NUnit.Framework.Assert.IsInstanceOfType(System.Type, object)' is obsolete
Now I may have already answered my question, but to fix this warning, is this just a case of replacing Assert.IsInstanceOfType () with Assert.IsInstanceOf ()? For example:
Assert.IsInstanceOfType(typeof(ClassName), variableName);
will become:
Assert.IsInstanceOf(typeof(ClassName), variableName);
c # nunit
Malice Apr 17 2018-10-17T00: 00Z
source share