Skip to content

Commit f5cce98

Browse files
authored
Removing Moq as a dependency for mock unit tests (#168)
* delete mock * coverage * fix test * indent * change to var - check
1 parent 244ebbf commit f5cce98

File tree

14 files changed

+75
-81
lines changed

14 files changed

+75
-81
lines changed

tests/NRedisStack.Tests/Bloom/BloomTests.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
using Xunit;
22
using StackExchange.Redis;
33
using NRedisStack.RedisStackCommands;
4-
using Moq;
54

65
namespace NRedisStack.Tests.Bloom;
76

87
public class BloomTests : AbstractNRedisStackTest, IDisposable
98
{
10-
Mock<IDatabase> _mock = new Mock<IDatabase>();
119
private readonly string key = "BLOOM_TESTS";
1210
public BloomTests(RedisFixture redisFixture) : base(redisFixture) { }
1311

tests/NRedisStack.Tests/CountMinSketch/CmsTests.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
using Xunit;
22
using StackExchange.Redis;
33
using NRedisStack.RedisStackCommands;
4-
using Moq;
54

65
namespace NRedisStack.Tests.CuckooFilter;
76

87
public class CmsTests : AbstractNRedisStackTest, IDisposable
98
{
10-
Mock<IDatabase> _mock = new Mock<IDatabase>();
119
private readonly string key = "CMS_TESTS";
1210
public CmsTests(RedisFixture redisFixture) : base(redisFixture) { }
1311

tests/NRedisStack.Tests/CuckooFilter/CuckooTests.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
using Xunit;
22
using StackExchange.Redis;
33
using NRedisStack.RedisStackCommands;
4-
using Moq;
54

65
namespace NRedisStack.Tests.CuckooFilter;
76

87
public class CuckooTests : AbstractNRedisStackTest, IDisposable
98
{
10-
Mock<IDatabase> _mock = new Mock<IDatabase>();
119
private readonly string key = "CUCKOO_TESTS";
1210
public CuckooTests(RedisFixture redisFixture) : base(redisFixture) { }
1311

tests/NRedisStack.Tests/Examples/ExampleTests.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using System.Net.Security;
22
using System.Security.Cryptography;
33
using System.Security.Cryptography.X509Certificates;
4-
using Moq;
54
using NRedisStack.DataTypes;
65
using NRedisStack.RedisStackCommands;
76
using NRedisStack.Search;
@@ -21,7 +20,6 @@ namespace NRedisStack.Tests;
2120
public class ExampleTests : AbstractNRedisStackTest, IDisposable
2221
{
2322
private readonly ITestOutputHelper testOutputHelper;
24-
Mock<IDatabase> _mock = new Mock<IDatabase>();
2523
private readonly string key = "EXAMPLES_TESTS";
2624
public ExampleTests(RedisFixture redisFixture, ITestOutputHelper testOutputHelper) : base(redisFixture)
2725
{

tests/NRedisStack.Tests/Gears/GearsTests.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
using Xunit;
22
using StackExchange.Redis;
3-
using Moq;
43

54
namespace NRedisStack.Tests.Gears;
65

76
public class GearsTests : AbstractNRedisStackTest, IDisposable
87
{
9-
Mock<IDatabase> _mock = new Mock<IDatabase>();
108
private readonly string key = "BLOOM_TESTS";
119
public GearsTests(RedisFixture redisFixture) : base(redisFixture) { }
1210

tests/NRedisStack.Tests/Graph/GraphTests.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
using Xunit;
22
using StackExchange.Redis;
33
using NRedisStack.RedisStackCommands;
4-
using Moq;
54
using NRedisStack.Graph;
65
using NRedisStack.Graph.DataTypes;
76

87
namespace NRedisStack.Tests.Graph;
98

109
public class GraphTests : AbstractNRedisStackTest, IDisposable
1110
{
12-
Mock<IDatabase> _mock = new Mock<IDatabase>();
1311
private readonly string key = "GRAPH_TESTS";
1412
public GraphTests(RedisFixture redisFixture) : base(redisFixture) { }
1513

0 commit comments

Comments
 (0)