1 // ****************************************************************
\r
2 // This is free software licensed under the NUnit license. You
\r
3 // may obtain a copy of the license as well as information regarding
\r
4 // copyright ownership at http://nunit.org/?p=license&r=2.4.
\r
5 // ****************************************************************
\r
8 using System.Threading;
\r
9 using System.Xml.Serialization;
\r
11 namespace NUnit.Util
\r
14 /// Holds an assembly path and other information needed to
\r
15 /// load an assembly. Currently there is no other info.
\r
16 /// Used in serialization of NUnit projects.
\r
19 public struct AssemblyItem
\r
24 public ApartmentState apartment;
\r
26 public AssemblyItem( string path ) : this( path, ApartmentState.Unknown ) { }
\r
28 public AssemblyItem( string path, ApartmentState apartment )
\r
30 if ( !System.IO.Path.IsPathRooted( path ) )
\r
31 throw new ArgumentException( "Assembly path must be absolute", "path" );
\r
33 this.apartment = apartment;
\r