2010-06-03 Jb Evain <jbevain@novell.com>
[mcs.git] / nunit24 / NUnitCore / interfaces / TestAssemblyInfo.cs
blobfbd7234af3c3c09d1f456f170fac7a75bf8e5dce
1 // ****************************************************************
2 // Copyright 2007, Charlie Poole
3 // This is free software licensed under the NUnit license. You may
4 // obtain a copy of the license at http://nunit.org/?p=license&r=2.4
5 // ****************************************************************
6 using System;
7 using System.Collections;
8 using System.Reflection;
9 using System.IO;
10 using System.Text;
12 namespace NUnit.Core
14 /// <summary>
15 /// TestAssemblyInfo holds information about a loaded test assembly
16 /// </summary>
17 [Serializable]
18 public class TestAssemblyInfo
20 private string assemblyName;
21 private Version runtimeVersion;
22 private IList testFrameworks;
24 /// <summary>
25 /// Constructs a TestAssemblyInfo
26 /// </summary>
27 /// <param name="assemblyName">The name of the assembly</param>
28 /// <param name="runtimeVersion">The version of the runtime for which the assembly was built</param>
29 /// <param name="testFrameworks">A list of test framework useds by the assembly</param>
30 public TestAssemblyInfo( string assemblyName, Version runtimeVersion, IList testFrameworks )
32 this.assemblyName = assemblyName;
33 this.runtimeVersion = runtimeVersion;
34 this.testFrameworks = testFrameworks;
37 /// <summary>
38 /// Gets the name of the assembly
39 /// </summary>
40 public string Name
42 get { return assemblyName; }
45 /// <summary>
46 /// Gets the runtime version for which the assembly was built
47 /// </summary>
48 public Version RuntimeVersion
50 get { return runtimeVersion; }
53 /// <summary>
54 /// Gets a list of testframeworks referenced by the assembly
55 /// </summary>
56 public IList TestFrameworks
58 get { return testFrameworks; }