コード例 #1
0
 public new static ServiceTestManager Instance()
 {
     // Lock entire body of method
     lock (SyncLock)
     {
         // ReSharper disable once ConvertIfStatementToNullCoalescingExpression
         if (_uniqueInstance == null)
         {
             _uniqueInstance = new ServiceTestManager();
         }
         return(_uniqueInstance);
     }
 }
コード例 #2
0
        public override void OnTestInitialise()
        {
            var testMethod = TestContext.TestName;

            try
            {
                TestManager = ServiceTestManager.Instance();
                TestManager.OnTestMethodInitialise(testMethod, TestContext);
                CustomAttributesInitialise(testMethod);
            }
            catch (Exception ex)
            {
                HandleException(ex);
            }
        }