Ejemplo n.º 1
0
        public void _StartTest(TestContext testContext)
        {
            //if (!SnTrace.SnTracers.Any(x => x is SnDebugViewTracer))
            //    SnTrace.SnTracers.Add(new SnDebugViewTracer());
            if (!SnTrace.SnTracers.Any(x => x is SnFileSystemTracer))
            {
                SnTrace.SnTracers.Add(new SnFileSystemTracer());
            }
            SnTrace.EnableAll();
            SnTrace.SecurityQueue.Enabled = false;

            _snTraceOperation =
                SnTrace.Test.StartOperation(
                    $"TESTMETHOD: {testContext.FullyQualifiedTestClassName}.{testContext.TestName}");
        }
Ejemplo n.º 2
0
        public void InitializeTest()
        {
            //// workaround for having a half-started repository
            //if (RepositoryInstance.Started())
            //    RepositoryInstance.Shutdown();

            SnTrace.Test.Enabled = true;
            //SnTrace.Test.Write("START test: {0}", TestContext.TestName);
            if (_testMethodOperation != null)
            {
                SnTrace.Test.Write("The operation was forced to close.");
                _testMethodOperation.Successful = false;
                _testMethodOperation.Dispose();
            }
            _testMethodOperation = SnTrace.Test.StartOperation("TESTMETHOD: " + TestContext.TestName);
        }
Ejemplo n.º 3
0
 private TreeLock(SnTrace.Operation logOp, params int[] lockIds)
 {
     this._logOp = logOp;
     _lockIds    = lockIds;
 }
Ejemplo n.º 4
0
 internal TreeLock(SnTrace.Operation logOp, IDataStore dataStore, params int[] lockIds)
 {
     this._logOp = logOp;
     _dataStore  = dataStore;
     _lockIds    = lockIds;
 }