Skip to content

Commit

Permalink
fix: Move Containers...DifferentHashes to its own test collection
Browse files Browse the repository at this point in the history
  • Loading branch information
HofmeisterAn committed Apr 27, 2024
1 parent f0117d5 commit 2945036
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions tests/Testcontainers.Platform.Linux.Tests/ReusableResourceTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,18 @@ public async Task ShouldReuseExistingResource()
Assert.Single(response.Volumes);
}

[Fact]
public void ContainersWithDifferentNamesShouldHaveDifferentHashes()
public static class ReuseHash
{
var hash1 = new ReuseHashContainerBuilder().WithName("Name1").GetReuseHash();
var hash2 = new ReuseHashContainerBuilder().WithName("Name2").GetReuseHash();

Assert.NotEqual(hash1, hash2);
public sealed class NotEqual
{
[Fact]
public void ForDifferentNames()
{
var hash1 = new ReuseHashContainerBuilder().WithName("Name1").GetReuseHash();
var hash2 = new ReuseHashContainerBuilder().WithName("Name2").GetReuseHash();
Assert.NotEqual(hash1, hash2);
}
}
}

public static class UnsupportedBuilderConfigurationTest
Expand Down

0 comments on commit 2945036

Please sign in to comment.