File tree 1 file changed +10
-10
lines changed
UnitsNet.Tests/CustomCode 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -129,17 +129,17 @@ public void PowerDividedBySpecificEnergyEqualsMassFlow()
129
129
}
130
130
131
131
[ Fact ]
132
- public void CurrentMultipliedByPotentialEqualsPower ( )
132
+ public void PowerDividedByElectricCurrentEqualsElectricPotential ( )
133
133
{
134
- ElectricCurrent i = ElectricCurrent . FromAmperes ( 5 ) ;
135
- ElectricPotential u = ElectricPotential . FromVolts ( 10 ) ;
136
- Power p = Power . FromWatts ( 50 ) ;
137
- Assert . Equal ( p , i * u ) ;
138
- Assert . Equal ( p , u * i ) ;
139
-
140
- // Validate the inverse is true as well
141
- Assert . Equal ( i , p / u ) ;
142
- Assert . Equal ( u , p / i ) ;
134
+ ElectricPotential u = Power . FromWatts ( 10 ) / ElectricCurrent . FromAmperes ( 2 ) ;
135
+ Assert . Equal ( 5 , u . Volts ) ;
136
+ }
137
+
138
+ [ Fact ]
139
+ public void PowerDividedByElectricPotentialEqualsElectricCurrent ( )
140
+ {
141
+ ElectricCurrent i = Power . FromWatts ( 20 ) / ElectricPotential . FromVolts ( 5 ) ;
142
+ Assert . Equal ( 4 , i . Amperes ) ;
143
143
}
144
144
}
145
145
}
You can’t perform that action at this time.
0 commit comments