public TracedDisposable(TracedDisposableControl tracedDisposableControl)
 {
     this._TracedDisposableControl = tracedDisposableControl;
     tracedDisposableControl ??= TracedDisposableControl.Instance;
     if (tracedDisposableControl.IsTraceEnabled(this.GetType()))
     {
         this._CtorStackTrace = TracedDisposableControl.GetStackTrace();
     }
 }
Beispiel #2
0
        public void T001_GetStackTrace()
        {
            /*
             * TracedDisposableControlTest.T001_GetStackTrace fileName:G:\github\grimmborium\Brimborium.Extensions\test\Brimborium.Extensions.Abstractions.Test\TracedDisposableControlTest.cs@12:13
             */
            var st = TracedDisposableControl.GetStackTrace();

            Assert.StartsWith("TracedDisposableControlTest.T001_GetStackTrace fileName:", st);
            Assert.Contains(@"Brimborium.Extensions.Disposable.Test\TracedDisposableControlTest.cs@13:13", st);
        }