Skip to content

Commit eb674c8

Browse files
committed
fix: Use correct ctor
1 parent f2bf9d7 commit eb674c8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/Testcontainers.Tests/Unit/Images/TestcontainersImageTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,14 @@ public void WhenImageNameGetsAssigned(DockerImageFixtureSerializable serializabl
7373
public void Platform_PlatformIsLinuxAmd64_ReturnsLinuxAmd64()
7474
{
7575
// Given
76-
const string platform = "linux/amd64";
77-
IImage dockerImage = new DockerImage("foo", platform);
76+
const string linuxAmd64 = "linux/amd64";
77+
IImage dockerImage = new DockerImage("foo", new Platform(linuxAmd64));
7878

7979
// When
8080
var result = dockerImage.Platform;
8181

8282
// Then
83-
Assert.Equal(platform, result);
83+
Assert.Equal(linuxAmd64, result);
8484
}
8585

8686
[Fact]

0 commit comments

Comments
 (0)