Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing Moq as a dependency for mock unit tests #168

Merged
merged 6 commits into from
Aug 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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