Hi,
I am working on this Project:
https://github.com/jjrdk/ArchiMetrics
When running test from class "PrioritySchedulerTests" with Test Explorer in VS 2013, all tests work fine.
But if I run using NCrunch, they doesnt pass.
I get following error:
An exception was thrown in the Task Environment: System.Threading.ThreadInterruptedException: O thread foi interrompido por um estado de espera.
em System.Threading.Monitor.ObjWait(Boolean exitContext, Int32 millisecondsTimeout, Object obj)
em System.Threading.Monitor.Wait(Object obj, Int32 millisecondsTimeout, Boolean exitContext)
em System.Threading.SemaphoreSlim.WaitUntilCountOrTimeout(Int32 millisecondsTimeout, UInt32 startTime, CancellationToken cancellationToken)
em System.Threading.SemaphoreSlim.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
em System.Collections.Concurrent.BlockingCollection`1.TryTakeWithNoTimeValidation(T& item, Int32 millisecondsTimeout, CancellationToken cancellationToken, CancellationTokenSource combinedTokenSource)
em System.Collections.Concurrent.BlockingCollection`1.<GetConsumingEnumerable>d__0.MoveNext()
em ArchiMetrics.Common.PriorityScheduler.<.ctor>b__1() na D:\Projetos\ArchiMetrics\ArchiMetrics.Common\PriorityScheduler.cs:linha 44
em System.Threading.ThreadHelper.ThreadStart_Context(Object state)
em System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
em System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
em System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
em System.Threading.ThreadHelper.ThreadStart()
System.Threading.ThreadInterruptedException: O thread foi interrompido por um estado de espera.
em System.Threading.Monitor.ObjWait(Boolean exitContext, Int32 millisecondsTimeout, Object obj)
em System.Threading.Monitor.Wait(Object obj, Int32 millisecondsTimeout, Boolean exitContext)
em System.Threading.SemaphoreSlim.WaitUntilCountOrTimeout(Int32 millisecondsTimeout, UInt32 startTime, CancellationToken cancellationToken)
em System.Threading.SemaphoreSlim.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
em System.Collections.Concurrent.BlockingCollection`1.TryTakeWithNoTimeValidation(T& item, Int32 millisecondsTimeout, CancellationToken cancellationToken, CancellationTokenSource combinedTokenSource)
em System.Collections.Concurrent.BlockingCollection`1.<GetConsumingEnumerable>d__0.MoveNext()
em ArchiMetrics.Common.PriorityScheduler.<.ctor>b__1() na D:\Projetos\ArchiMetrics\ArchiMetrics.Common\PriorityScheduler.cs:linha 44
em System.Threading.ThreadHelper.ThreadStart_Context(Object state)
em System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
em System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
em System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
em System.Threading.ThreadHelper.ThreadStart()
An exception was thrown in the Task Environment: System.ArgumentNullException: Valor não pode ser nulo.
em System.Threading.SemaphoreSlim.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
em System.Collections.Concurrent.BlockingCollection`1.TryTakeWithNoTimeValidation(T& item, Int32 millisecondsTimeout, CancellationToken cancellationToken, CancellationTokenSource combinedTokenSource)
em System.Collections.Concurrent.BlockingCollection`1.<GetConsumingEnumerable>d__0.MoveNext()
em ArchiMetrics.Common.PriorityScheduler.<.ctor>b__1() na D:\Projetos\ArchiMetrics\ArchiMetrics.Common\PriorityScheduler.cs:linha 44
em System.Threading.ThreadHelper.ThreadStart_Context(Object state)
em System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
em System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
em System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
em System.Threading.ThreadHelper.ThreadStart()
System.ArgumentNullException: Valor não pode ser nulo.
em System.Threading.SemaphoreSlim.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
em System.Collections.Concurrent.BlockingCollection`1.TryTakeWithNoTimeValidation(T& item, Int32 millisecondsTimeout, CancellationToken cancellationToken, CancellationTokenSource combinedTokenSource)
em System.Collections.Concurrent.BlockingCollection`1.<GetConsumingEnumerable>d__0.MoveNext()
em ArchiMetrics.Common.PriorityScheduler.<.ctor>b__1() na D:\Projetos\ArchiMetrics\ArchiMetrics.Common\PriorityScheduler.cs:linha 44
em System.Threading.ThreadHelper.ThreadStart_Context(Object state)
em System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
em System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
em System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
em System.Threading.ThreadHelper.ThreadStart()