public void SetUp() { // create sample fixture this.compiler = new SampleCompiler("TestFixtureSample.cs"); this.compiler.AddMbUnitReferences(); this.compiler.CreateAssembly(); }
public void TestFixtureSetUpThrows() { SampleCompiler compiler = new SampleCompiler("FixtureSetUpThrowsTest.cs"); compiler.AddMbUnitReferences(); compiler.LoadAndRunFixtures(); Assert.AreEqual(2, compiler.Result.Counter.FailureCount); Assert.AreEqual(2, compiler.Result.Counter.RunCount); }
public void SetUp() { this.compiler = new SampleCompiler("NUnitFixture.cs"); string nunitFolder = ConfigurationSettings.AppSettings["NUnitFolder"]; string nunitFrameworkDll = Path.Combine(nunitFolder, @"NUnit.Framework.dll"); Console.Out.WriteLine("NUnit.Framework.dll: {0}", nunitFrameworkDll); this.compiler.Compiler.Parameters.ReferencedAssemblies.Add(nunitFrameworkDll); Console.Out.WriteLine("Target assembly: {0}", this.compiler.Compiler.Parameters.OutputAssembly); }
public void SetUp() { //Console.WriteLine("NUnit serialization test"); this.compiler = new SampleCompiler("NUnitSerializationFixture.cs"); string nunitFolder = ConfigurationSettings.AppSettings["NUnitFolder"]; string nunitFrameworkDll = Path.GetFullPath(Path.Combine(nunitFolder, @"NUnit.Framework.dll")); Console.Out.WriteLine("NUnit.Framework.dll: {0}", nunitFrameworkDll); this.compiler.Compiler.Parameters.ReferencedAssemblies.Add(nunitFrameworkDll); this.compiler.Compiler.Parameters.ReferencedAssemblies.Add("System.Xml.dll"); Console.Out.WriteLine("Target assembly: {0}", this.compiler.Compiler.Parameters.OutputAssembly); this.compiler.Compiles(); }