Skip to content

Commit

Permalink
Merge pull request #246 from portyanikhin/dependabot/nuget/csharpier-…
Browse files Browse the repository at this point in the history
…0.26.7

Bump csharpier from 0.26.6 to 0.26.7
  • Loading branch information
portyanikhin authored Dec 20, 2023
2 parents 82e9876 + d1194ad commit 12b8c19
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"isRoot": true,
"tools": {
"csharpier": {
"version": "0.26.6",
"version": "0.26.7",
"commands": [
"dotnet-csharpier"
]
Expand Down
6 changes: 2 additions & 4 deletions src/SharpProp/Fluids/FluidState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ out var output
out var output
)
? UnitsNet
.DynamicViscosity
.FromPascalSeconds(output!.Value)
.DynamicViscosity.FromPascalSeconds(output!.Value)
.ToUnit(DynamicViscosityUnit.MillipascalSecond)
: null;

Expand Down Expand Up @@ -136,8 +135,7 @@ out var output
out var output
)
? UnitsNet
.MolarMass
.FromKilogramsPerMole(output!.Value)
.MolarMass.FromKilogramsPerMole(output!.Value)
.ToUnit(MolarMassUnit.GramPerMole)
: null;

Expand Down
4 changes: 1 addition & 3 deletions tests/SharpProp.Tests/Fluids/FluidExtendedTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ public void Dispose()
[Fact]
public void SpecificHeatConstVolume_WaterInStandardConditions_Returns4156() =>
_fluid
.SpecificHeatConstVolume
.JoulesPerKilogramKelvin
.Should()
.SpecificHeatConstVolume.JoulesPerKilogramKelvin.Should()
.Be(4156.6814728615545);

[Fact]
Expand Down
9 changes: 3 additions & 6 deletions tests/SharpProp.Tests/Fluids/FluidTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -144,16 +144,14 @@ public void Update_VariousFluids_MatchesWithCoolProp(FluidsList name)
}

fluid
.KinematicViscosity
?.Equals(
.KinematicViscosity?.Equals(
(fluid.DynamicViscosity / fluid.Density)!.Value,
Tolerance.Centistokes()
)
.Should()
.BeTrue();
fluid
.SpecificVolume
.Equals(
.SpecificVolume.Equals(
SpecificVolume.FromCubicMetersPerKilogram(
1.0 / fluid.Density.KilogramsPerCubicMeter
),
Expand Down Expand Up @@ -202,8 +200,7 @@ public void WithState_WaterInStandardConditions_PhaseIsLiquid() =>
Input.Pressure(1.Atmospheres()),
Input.Temperature(20.DegreesCelsius())
)
.Phase
.Should()
.Phase.Should()
.Be(Phases.Liquid);

[Fact]
Expand Down
3 changes: 1 addition & 2 deletions tests/SharpProp.Tests/Fluids/MixtureTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ public void WithState_VodkaInStandardConditions_PhaseIsLiquid() =>
Input.Pressure(1.Atmospheres()),
Input.Temperature(20.DegreesCelsius())
)
.Phase
.Should()
.Phase.Should()
.Be(Phases.Liquid);

[Fact]
Expand Down
4 changes: 1 addition & 3 deletions tests/SharpProp.Tests/HumidAir/HumidAirExtendedTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ public class HumidAirExtendedTests
[Fact]
public void SpecificHeatConstVolume_HumidAirInStandardConditions_Returns722() =>
_humidAir
.SpecificHeatConstVolume
.JoulesPerKilogramKelvin
.Should()
.SpecificHeatConstVolume.JoulesPerKilogramKelvin.Should()
.Be(722.68718970632506);

[Fact]
Expand Down
9 changes: 3 additions & 6 deletions tests/SharpProp.Tests/HumidAir/HumidAirTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,7 @@ public void Update_VariousConditions_MatchesWithCoolProp(
}

_humidAir
.Density
.Equals(
.Density.Equals(
Density.FromKilogramsPerCubicMeter(
1.0 / _humidAir.SpecificVolume.CubicMetersPerKilogram
),
Expand All @@ -127,16 +126,14 @@ public void Update_VariousConditions_MatchesWithCoolProp(
.Should()
.BeTrue();
_humidAir
.KinematicViscosity
.Equals(
.KinematicViscosity.Equals(
_humidAir.DynamicViscosity / _humidAir.Density,
Tolerance.Centistokes()
)
.Should()
.BeTrue();
_humidAir
.Prandtl
.Should()
.Prandtl.Should()
.Be(
_humidAir.DynamicViscosity.PascalSeconds
* _humidAir.SpecificHeat.JoulesPerKilogramKelvin
Expand Down

0 comments on commit 12b8c19

Please sign in to comment.