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

@ -37,9 +37,9 @@
<SpecificVersion>False</SpecificVersion> <SpecificVersion>False</SpecificVersion>
<HintPath>..\References\nmock\net-2.0\NMock2.dll</HintPath> <HintPath>..\References\nmock\net-2.0\NMock2.dll</HintPath>
</Reference> </Reference>
<Reference Include="nunit.framework, Version=2.4.6.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL"> <Reference Include="nunit.framework, Version=2.5.0.8332, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion> <SpecificVersion>False</SpecificVersion>
<HintPath>..\References\nunit\net-2.0\nunit.framework.dll</HintPath> <HintPath>..\References\nunit\net-2.0\framework\nunit.framework.dll</HintPath>
</Reference> </Reference>
<Reference Include="System" /> <Reference Include="System" />
<Reference Include="System.Data" /> <Reference Include="System.Data" />

View File

@ -24,7 +24,6 @@ using System.IO;
#if UNITTEST #if UNITTEST
using NUnit.Framework; using NUnit.Framework;
using NUnit.Framework.SyntaxHelpers;
namespace Nuclex.Support { namespace Nuclex.Support {

View File

@ -25,7 +25,6 @@ using System.IO;
using System.Reflection; using System.Reflection;
using NUnit.Framework; using NUnit.Framework;
using NUnit.Framework.SyntaxHelpers;
namespace Nuclex.Support.Plugins { namespace Nuclex.Support.Plugins {

View File

@ -24,7 +24,6 @@ using System;
using System.IO; using System.IO;
using NUnit.Framework; using NUnit.Framework;
using NUnit.Framework.SyntaxHelpers;
namespace Nuclex.Support.Plugins { namespace Nuclex.Support.Plugins {

View File

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

View File

@ -24,7 +24,6 @@ using System.IO;
#if UNITTEST #if UNITTEST
using NUnit.Framework; using NUnit.Framework;
using NUnit.Framework.SyntaxHelpers;
namespace Nuclex.Support.Plugins { namespace Nuclex.Support.Plugins {
@ -104,7 +103,7 @@ namespace Nuclex.Support.Plugins {
Assert.AreEqual(1, testEmployer.Instances.Count); Assert.AreEqual(1, testEmployer.Instances.Count);
Assert.AreEqual(typeof(Derived), testEmployer.Instances[0].GetType()); Assert.AreEqual(typeof(Derived), testEmployer.Instances[0].GetType());
Assert.IsInstanceOfType(typeof(Derived), testEmployer.Instances[0]); Assert.IsInstanceOf<Derived>(testEmployer.Instances[0]);
} }
/// <summary> /// <summary>
@ -119,7 +118,7 @@ namespace Nuclex.Support.Plugins {
Assert.AreEqual(1, testEmployer.Instances.Count); Assert.AreEqual(1, testEmployer.Instances.Count);
Assert.AreEqual(typeof(Unrelated), testEmployer.Instances[0].GetType()); Assert.AreEqual(typeof(Unrelated), testEmployer.Instances[0].GetType());
Assert.IsInstanceOfType(typeof(Unrelated), testEmployer.Instances[0]); Assert.IsInstanceOf<Unrelated>(testEmployer.Instances[0]);
} }
} }

View File

@ -24,7 +24,6 @@ using System.IO;
#if UNITTEST #if UNITTEST
using NUnit.Framework; using NUnit.Framework;
using NUnit.Framework.SyntaxHelpers;
namespace Nuclex.Support.Plugins { namespace Nuclex.Support.Plugins {

View File

@ -24,7 +24,6 @@ using System.IO;
#if UNITTEST #if UNITTEST
using NUnit.Framework; using NUnit.Framework;
using NUnit.Framework.SyntaxHelpers;
namespace Nuclex.Support.Plugins { namespace Nuclex.Support.Plugins {

View File

@ -25,7 +25,6 @@ using System.Reflection;
#if UNITTEST #if UNITTEST
using NUnit.Framework; using NUnit.Framework;
using NUnit.Framework.SyntaxHelpers;
namespace Nuclex.Support.Plugins { namespace Nuclex.Support.Plugins {

View File

@ -26,7 +26,6 @@ using System.Reflection;
#if UNITTEST #if UNITTEST
using NUnit.Framework; using NUnit.Framework;
using NUnit.Framework.SyntaxHelpers;
using NMock2; using NMock2;
namespace Nuclex.Support.Plugins { namespace Nuclex.Support.Plugins {

View File

@ -74,7 +74,7 @@ namespace Nuclex.Support.Scheduling {
memory.Position = 0; memory.Position = 0;
object exception2 = formatter.Deserialize(memory); object exception2 = formatter.Deserialize(memory);
Assert.IsInstanceOfType(typeof(AbortedException), exception2); Assert.IsInstanceOf<AbortedException>(exception2);
Assert.AreEqual(exception1.Message, ((AbortedException)exception2).Message); Assert.AreEqual(exception1.Message, ((AbortedException)exception2).Message);
} }
} }

View File

@ -24,7 +24,6 @@ using System.IO;
#if UNITTEST #if UNITTEST
using NUnit.Framework; using NUnit.Framework;
using NUnit.Framework.SyntaxHelpers;
namespace Nuclex.Support { namespace Nuclex.Support {

View File

@ -24,7 +24,6 @@ using System.IO;
#if UNITTEST #if UNITTEST
using NUnit.Framework; using NUnit.Framework;
using NUnit.Framework.SyntaxHelpers;
namespace Nuclex.Support { namespace Nuclex.Support {

View File

@ -24,7 +24,6 @@ using System.IO;
#if UNITTEST #if UNITTEST
using NUnit.Framework; using NUnit.Framework;
using NUnit.Framework.SyntaxHelpers;
namespace Nuclex.Support { namespace Nuclex.Support {

View File

@ -24,7 +24,6 @@ using System.IO;
#if UNITTEST #if UNITTEST
using NUnit.Framework; using NUnit.Framework;
using NUnit.Framework.SyntaxHelpers;
namespace Nuclex.Support.Tracking { namespace Nuclex.Support.Tracking {

View File

@ -25,7 +25,6 @@ using System.Threading;
#if UNITTEST #if UNITTEST
using NUnit.Framework; using NUnit.Framework;
using NUnit.Framework.SyntaxHelpers;
using NMock2; using NMock2;
namespace Nuclex.Support.Tracking { namespace Nuclex.Support.Tracking {

View File

@ -25,7 +25,6 @@ using System.Threading;
#if UNITTEST #if UNITTEST
using NUnit.Framework; using NUnit.Framework;
using NUnit.Framework.SyntaxHelpers;
using NMock2; using NMock2;
namespace Nuclex.Support.Tracking { namespace Nuclex.Support.Tracking {

View File

@ -24,7 +24,6 @@ using System.IO;
#if UNITTEST #if UNITTEST
using NUnit.Framework; using NUnit.Framework;
using NUnit.Framework.SyntaxHelpers;
namespace Nuclex.Support.Tracking { namespace Nuclex.Support.Tracking {

View File

@ -24,7 +24,6 @@ using System.IO;
#if UNITTEST #if UNITTEST
using NUnit.Framework; using NUnit.Framework;
using NUnit.Framework.SyntaxHelpers;
namespace Nuclex.Support.Tracking { namespace Nuclex.Support.Tracking {

View File

@ -24,7 +24,6 @@ using System.IO;
#if UNITTEST #if UNITTEST
using NUnit.Framework; using NUnit.Framework;
using NUnit.Framework.SyntaxHelpers;
namespace Nuclex.Support.Tracking { namespace Nuclex.Support.Tracking {

View File

@ -25,7 +25,6 @@ using System.IO;
using System.Runtime.Serialization.Formatters.Binary; using System.Runtime.Serialization.Formatters.Binary;
using NUnit.Framework; using NUnit.Framework;
using NUnit.Framework.SyntaxHelpers;
namespace Nuclex.Support { namespace Nuclex.Support {