File tree Expand file tree Collapse file tree
DockerComposeFixture.Tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ public void Ports_DetermineUtilizedPorts_ReturnsThoseInUse()
5353 [ Fact ]
5454 public void GivenRequiredPortInUse_ThenExceptionIsThrownWithPortNumber ( )
5555 {
56+ // Arrange
5657 const ushort portToOccupy = 12871 ;
5758 var ipEndPoint = new IPEndPoint ( IPAddress . Loopback , portToOccupy ) ;
5859 using Socket listener = new (
@@ -62,6 +63,7 @@ public void GivenRequiredPortInUse_ThenExceptionIsThrownWithPortNumber()
6263 listener . Bind ( ipEndPoint ) ;
6364 listener . Listen ( ) ;
6465
66+ // Act & Assert
6567 var thrownException = Assert . Throws < PortsUnavailableException > ( ( ) =>
6668 {
6769 dockerFixture . InitOnce ( ( ) => new DockerFixtureOptions
Original file line number Diff line number Diff line change 22
33 <PropertyGroup >
44 <TargetFramework >netstandard2.1</TargetFramework >
5- <Version >1.2.2 </Version >
5+ <Version >1.3.0 </Version >
66 <IsTestProject >false</IsTestProject >
77 <Authors >Joe Shearn</Authors >
88 <Product >Docker Compose Fixture</Product >
1313 <PackageLicenseUrl >https://github.com/devjoes/DockerComposeFixture/blob/master/LICENSE</PackageLicenseUrl >
1414 <RepositoryUrl >https://github.com/devjoes/DockerComposeFixture</RepositoryUrl >
1515 <PackageTags >docker docker-compose xunit</PackageTags >
16- <PackageReleaseNotes >Do not throw null reference if fixture is disposed of without being initialized .</PackageReleaseNotes >
17- <AssemblyVersion >1.2.2 .0</AssemblyVersion >
16+ <PackageReleaseNotes >Add RequiredPorts checking functionality .</PackageReleaseNotes >
17+ <AssemblyVersion >1.3.0 .0</AssemblyVersion >
1818 </PropertyGroup >
1919
2020 <ItemGroup >
Original file line number Diff line number Diff line change 33 <metadata minClientVersion =" 2.12" >
44 <id >dockercomposefixture</id >
55 <title >docker-compose Fixture</title >
6- <version >1.2.2 </version >
6+ <version >1.3.0 </version >
77 <authors >Joe Shearn</authors >
88 <owners >Joe Shearn</owners >
99 <requireLicenseAcceptance >false</requireLicenseAcceptance >
You can’t perform that action at this time.
0 commit comments