remove ifdefs, our tests compile release sometimes
This commit is contained in:
parent
6e6a24cbb4
commit
12e61d75a7
|
|
@ -57,7 +57,6 @@ namespace Microsoft.CodeAnalysis.Razor.ProjectSystem
|
||||||
// Used in unit tests to control the timer delay.
|
// Used in unit tests to control the timer delay.
|
||||||
public TimeSpan Delay { get; set; } = TimeSpan.FromSeconds(2);
|
public TimeSpan Delay { get; set; } = TimeSpan.FromSeconds(2);
|
||||||
|
|
||||||
#if DEBUG
|
|
||||||
public bool IsScheduledOrRunning => _timer != null;
|
public bool IsScheduledOrRunning => _timer != null;
|
||||||
|
|
||||||
// Used in unit tests to ensure we can control when background work starts.
|
// Used in unit tests to ensure we can control when background work starts.
|
||||||
|
|
@ -68,12 +67,9 @@ namespace Microsoft.CodeAnalysis.Razor.ProjectSystem
|
||||||
|
|
||||||
// Used in unit tests to ensure we can be notified when all completes.
|
// Used in unit tests to ensure we can be notified when all completes.
|
||||||
public ManualResetEventSlim NotifyForegroundWorkFinish { get; set; }
|
public ManualResetEventSlim NotifyForegroundWorkFinish { get; set; }
|
||||||
#endif
|
|
||||||
|
|
||||||
[Conditional("DEBUG")]
|
|
||||||
private void OnStartingBackgroundWork()
|
private void OnStartingBackgroundWork()
|
||||||
{
|
{
|
||||||
|
|
||||||
if (BlockBackgroundWorkStart != null)
|
if (BlockBackgroundWorkStart != null)
|
||||||
{
|
{
|
||||||
BlockBackgroundWorkStart.Wait();
|
BlockBackgroundWorkStart.Wait();
|
||||||
|
|
@ -81,7 +77,6 @@ namespace Microsoft.CodeAnalysis.Razor.ProjectSystem
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[Conditional("DEBUG")]
|
|
||||||
private void OnFinishingBackgroundWork()
|
private void OnFinishingBackgroundWork()
|
||||||
{
|
{
|
||||||
if (NotifyBackgroundWorkFinish != null)
|
if (NotifyBackgroundWorkFinish != null)
|
||||||
|
|
@ -90,7 +85,6 @@ namespace Microsoft.CodeAnalysis.Razor.ProjectSystem
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[Conditional("DEBUG")]
|
|
||||||
private void OnFinishingForegroundWork()
|
private void OnFinishingForegroundWork()
|
||||||
{
|
{
|
||||||
if (NotifyForegroundWorkFinish != null)
|
if (NotifyForegroundWorkFinish != null)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue