using System;
using System.Collections.Generic;
using System.Text;
using NUnit.Framework;
using Systin.Library;
using System.Reflection;
namespace Systin.Library.UnitTests{
[TestFixture]
class ThreadWorkerMethodCallUnitTest
{
private static string LanguageLibraryName = "LanguageLibrary.dll";
private List<Type> mAssemblyTypes;
[Test]
public void ThreadMethodArgumentsAreNotNull() {
//Set up necessary variables
Queue<Instruction> instructions = new Queue<Instruction>();
Assembly assembly = Util.GetAssemblyPathRelativeToCurrentAssembly(LanguageLibraryName, ref this.mAssemblyTypes);
LanguageDriverClassManager ldcm = LanguageDriverClassManager.Factory(assembly);
try
{
//call the method under test
ThreadWorkerMethodCall tworker = ThreadWorkerMethodCall.Factory(null, ref ldcm);
Assert.Fail("Exception was not thrown");
}
catch (ArgumentNullException) { }
}
}
}
|