Exemplo n.º 1
0
 /// <remarks>
 ///   <para>No need to add SetUp attribute to overriden method.</para>
 ///   <para>Super classes that override SetUp must call the base class first.</para>
 /// </remarks>
 protected virtual void SetUp()
 {
     _tempDirName = TempDir.Create(this.GetType().FullName);
 }
Exemplo n.º 2
0
 protected virtual void TearDown()
 {
     TempDir.Delete(TempDirName);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Creates a temporary directory.
 /// </summary>
 /// <param name="name">The name of the directory to create (name only, no path info).</param>
 /// <returns>
 /// The full path to the temp directory.
 /// </returns>
 /// <remarks>
 /// The directory is created and existance is checked.
 /// </remarks>
 public string CreateTempDir(string name)
 {
     return(TempDir.Create(Path.Combine(TempDirName, name)));
 }