public static TestManager Instance()
        {
            // Lock entire body of method
            lock (SyncLock)
            {
                // ReSharper disable once ConvertIfStatementToNullCoalescingExpression
                if (_uniqueInstance == null)
                {
                    _uniqueInstance = new TestManager();
                }

                CurrentTestManager.Current = _uniqueInstance;

                return(_uniqueInstance);
            }
        }
Exemple #2
0
        public virtual void OnTestInitialise()
        {
            try
            {
                TestManager.OnTestMethodInitialise();
            }
            catch (Exception exp)
            {
                TestManager.TestResult.SetFailedTest(exp);

                if (LoggingUtility == null || ConfigurationReader == null)
                {
                    throw;
                }

                LoggingUtility.Error(Exceptions.Exception.ExceptionMsgSetupError + exp.Message);

                throw;
            }
        }
 // ReSharper disable once PublicConstructorInAbstractClass
 public TestBase(TestManager testManager, ITestOutputHelper output) : base(testManager, output)
 {
 }