Add a more functional (i.e. fewer-stubs) implementation of System.Data.Linq.
[mono.git] / mcs / nunit24 / NUnitFixtures / fixtures / AssemblyRunner.cs
1 // ****************************************************************\r
2 // Copyright 2007, Charlie Poole\r
3 // This is free software licensed under the NUnit license. You may\r
4 // obtain a copy of the license at http://nunit.org/?p=license&r=2.4\r
5 // ****************************************************************\r
6 \r
7 using System;\r
8 using System.Reflection;\r
9 \r
10 namespace NUnit.Fixtures\r
11 {\r
12         /// <summary>\r
13         /// Summary description for AssemblyRunner.\r
14         /// </summary>\r
15         public class AssemblyRunner : TestLoadFixture\r
16         {\r
17                 public string Assembly;\r
18 \r
19                 // Override doCell to handle the 'Code' column. We compile\r
20                 // the code and optionally load and run the tests.\r
21                 public override void doCell(fit.Parse cell, int columnNumber)\r
22                 {\r
23                         base.doCell (cell, columnNumber);\r
24 \r
25                         FieldInfo field = columnBindings[columnNumber].field;\r
26                         if ( field != null && field.Name == "Assembly" )\r
27                                 LoadAndRunTestAssembly( cell, Assembly );\r
28                 }\r
29         }\r
30 }\r