* Stylecop Rules and Fixes
This commit is contained in:
Qstick
2020-01-03 07:49:24 -05:00
committed by GitHub
parent 63d669178d
commit f77a2feeef
1307 changed files with 8704 additions and 7404 deletions
@@ -7,7 +7,7 @@ using NzbDrone.Common.TPL;
namespace NzbDrone.Common.Test.TPLTests
{
[TestFixture]
[Platform(Exclude="MacOsX")]
[Platform(Exclude = "MacOsX")]
public class DebouncerFixture
{
public class Counter
@@ -20,7 +20,6 @@ namespace NzbDrone.Common.Test.TPLTests
}
}
[Test]
[Retry(3)]
public void should_hold_the_call_for_debounce_duration()
@@ -34,11 +33,9 @@ namespace NzbDrone.Common.Test.TPLTests
counter.Count.Should().Be(0);
Thread.Sleep(100);
counter.Count.Should().Be(1);
}
[Test]
@@ -54,7 +51,6 @@ namespace NzbDrone.Common.Test.TPLTests
counter.Count.Should().Be(0);
Thread.Sleep(200);
debounceFunction.Execute();
@@ -64,7 +60,6 @@ namespace NzbDrone.Common.Test.TPLTests
Thread.Sleep(200);
counter.Count.Should().Be(2);
}
[Test]
@@ -1,16 +1,16 @@
using System;
using System.Collections.Concurrent;
using System.Diagnostics;
using FluentAssertions;
using NUnit.Framework;
using NzbDrone.Common.Cache;
using NzbDrone.Common.TPL;
using NzbDrone.Test.Common;
using FluentAssertions;
namespace NzbDrone.Common.Test.TPLTests
{
[TestFixture]
[Platform(Exclude="MacOsX")]
[Platform(Exclude = "MacOsX")]
public class RateLimitServiceFixture : TestBase<RateLimitService>
{
private DateTime _epoch;