Upgraded Nuclex.Support to NUnit 2.5 Beta 1

git-svn-id: file:///srv/devel/repo-conversion/nusu@114 d2e56fa2-650e-0410-a79f-9358c0239efd
This commit is contained in:
Markus Ewald 2009-01-13 19:30:33 +00:00
parent 0a483b4d44
commit 8dc15e8515
21 changed files with 7 additions and 30 deletions

View file

@ -24,7 +24,6 @@ using System.IO;
#if UNITTEST
using NUnit.Framework;
using NUnit.Framework.SyntaxHelpers;
namespace Nuclex.Support.Plugins {
@ -103,9 +102,7 @@ namespace Nuclex.Support.Plugins {
Assert.AreEqual(1, testEmployer.Factories.Count);
Assert.AreEqual(typeof(Derived), testEmployer.Factories[0].ConcreteType);
Assert.IsInstanceOfType(
typeof(Derived), testEmployer.Factories[0].CreateInstance()
);
Assert.IsInstanceOf<Derived>(testEmployer.Factories[0].CreateInstance());
}
/// <summary>
@ -120,9 +117,7 @@ namespace Nuclex.Support.Plugins {
Assert.AreEqual(1, testEmployer.Factories.Count);
Assert.AreEqual(typeof(Unrelated), testEmployer.Factories[0].ConcreteType);
Assert.IsInstanceOfType(
typeof(Unrelated), testEmployer.Factories[0].CreateInstance()
);
Assert.IsInstanceOf<Unrelated>(testEmployer.Factories[0].CreateInstance());
}
}