/// <exception cref="System.Exception"/> public override void Evaluate() { FilePath testDir = null; TestDir testDirAnnotation = frameworkMethod.GetAnnotation <TestDir>(); if (testDirAnnotation != null) { testDir = TestDirHelper.ResetTestCaseDir(frameworkMethod.GetName()); } try { TestDirHelper.TestDirTl.Set(testDir); statement.Evaluate(); } finally { TestDirHelper.TestDirTl.Remove(); } }
public virtual void TestDirAnnotation() { NUnit.Framework.Assert.IsNotNull(TestDirHelper.GetTestDir()); }
/// <exception cref="System.Exception"/> public virtual void TestDirNoAnnotation() { TestDirHelper.GetTestDir(); }