/// <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); }
protected virtual void TearDown() { TempDir.Delete(TempDirName); }
/// <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))); }