Skip to content

Commit

Permalink
test: add test for redis database fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
Confusingboat committed Mar 29, 2024
1 parent 782d8b4 commit 65eac70
Showing 1 changed file with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
using Ephemerally.Redis.Xunit;
using Shouldly;

namespace Ephemerally.Redis.Tests.Fixtures;

[Collection(RedisDatabaseFixtureTestCollection.Name)]
public class RedisDatabaseFixtureTests(RedisDatabaseFixture<RedisDatabaseFixtureTestCollectionFixture> databaseFixture)
: IClassFixture<RedisDatabaseFixture<RedisDatabaseFixtureTestCollectionFixture>>
{
[Fact]
public void Database_should_not_be_null()
{
databaseFixture.Database.ShouldNotBeNull();
}
}

[CollectionDefinition(Name)]
public class RedisDatabaseFixtureTestCollection
: ICollectionFixture<RedisDatabaseFixtureTestCollectionFixture>
{
public const string Name = nameof(RedisDatabaseFixtureTestCollection);
}

public class RedisDatabaseFixtureTestCollectionFixture
: PooledEphemeralRedisMultiplexerFixture<RedisInstanceFixture7>;

0 comments on commit 65eac70

Please sign in to comment.