Skip to content

Commit

Permalink
Removing Moq as a dependency for mock unit tests (#168)
Browse files Browse the repository at this point in the history
* delete mock

* coverage

* fix test

* indent

* change to var - check
  • Loading branch information
shacharPash authored Aug 14, 2023
1 parent 244ebbf commit f5cce98
Show file tree
Hide file tree
Showing 14 changed files with 75 additions and 81 deletions.
2 changes: 0 additions & 2 deletions tests/NRedisStack.Tests/Bloom/BloomTests.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
using Xunit;
using StackExchange.Redis;
using NRedisStack.RedisStackCommands;
using Moq;

namespace NRedisStack.Tests.Bloom;

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

Expand Down
2 changes: 0 additions & 2 deletions tests/NRedisStack.Tests/CountMinSketch/CmsTests.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
using Xunit;
using StackExchange.Redis;
using NRedisStack.RedisStackCommands;
using Moq;

namespace NRedisStack.Tests.CuckooFilter;

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

Expand Down
2 changes: 0 additions & 2 deletions tests/NRedisStack.Tests/CuckooFilter/CuckooTests.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
using Xunit;
using StackExchange.Redis;
using NRedisStack.RedisStackCommands;
using Moq;

namespace NRedisStack.Tests.CuckooFilter;

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

Expand Down
2 changes: 0 additions & 2 deletions tests/NRedisStack.Tests/Examples/ExampleTests.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System.Net.Security;
using System.Security.Cryptography;
using System.Security.Cryptography.X509Certificates;
using Moq;
using NRedisStack.DataTypes;
using NRedisStack.RedisStackCommands;
using NRedisStack.Search;
Expand All @@ -21,7 +20,6 @@ namespace NRedisStack.Tests;
public class ExampleTests : AbstractNRedisStackTest, IDisposable
{
private readonly ITestOutputHelper testOutputHelper;
Mock<IDatabase> _mock = new Mock<IDatabase>();
private readonly string key = "EXAMPLES_TESTS";
public ExampleTests(RedisFixture redisFixture, ITestOutputHelper testOutputHelper) : base(redisFixture)
{
Expand Down
2 changes: 0 additions & 2 deletions tests/NRedisStack.Tests/Gears/GearsTests.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
using Xunit;
using StackExchange.Redis;
using Moq;

namespace NRedisStack.Tests.Gears;

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

Expand Down
2 changes: 0 additions & 2 deletions tests/NRedisStack.Tests/Graph/GraphTests.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
using Xunit;
using StackExchange.Redis;
using NRedisStack.RedisStackCommands;
using Moq;
using NRedisStack.Graph;
using NRedisStack.Graph.DataTypes;

namespace NRedisStack.Tests.Graph;

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

Expand Down
Loading

0 comments on commit f5cce98

Please sign in to comment.