Пример #1
0
            /// <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();
                }
            }
Пример #2
0
 public virtual void TestDirAnnotation()
 {
     NUnit.Framework.Assert.IsNotNull(TestDirHelper.GetTestDir());
 }
Пример #3
0
 /// <exception cref="System.Exception"/>
 public virtual void TestDirNoAnnotation()
 {
     TestDirHelper.GetTestDir();
 }