1
1
// Copyright (c) 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com).
2
2
// https://github.com/angularsen/UnitsNet
3
- //
3
+ //
4
4
// Permission is hereby granted, free of charge, to any person obtaining a copy
5
5
// of this software and associated documentation files (the "Software"), to deal
6
6
// in the Software without restriction, including without limitation the rights
7
7
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
8
// copies of the Software, and to permit persons to whom the Software is
9
9
// furnished to do so, subject to the following conditions:
10
- //
10
+ //
11
11
// The above copyright notice and this permission notice shall be included in
12
12
// all copies or substantial portions of the Software.
13
- //
13
+ //
14
14
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
15
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
16
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
@@ -51,26 +51,19 @@ public void ForceDividedByAreaEqualsPressure()
51
51
}
52
52
53
53
[ Fact ]
54
- public void PressureByAreaEqualsForceUsingArea ( )
54
+ public void PressureByAreaEqualsForce ( )
55
55
{
56
56
Force force = Force . FromPressureByArea ( Pressure . FromNewtonsPerSquareMeter ( 5 ) , Area . FromSquareMeters ( 7 ) ) ;
57
57
Assert . Equal ( force , Force . FromNewtons ( 35 ) ) ;
58
58
}
59
59
60
- [ Fact ]
61
- public void PressureByAreaEqualsForceUsingLength2D ( )
62
- {
63
- var force = Force . FromPressureByArea ( Pressure . FromNewtonsPerSquareMeter ( 6 ) , Length2d . FromMeters ( 5 , 2 ) ) ;
64
- Assert . Equal ( force , Force . FromNewtons ( 60 ) ) ;
65
- }
66
-
67
60
[ Fact ]
68
61
public void ForceDividedByMassEqualsAcceleration ( )
69
62
{
70
63
Acceleration acceleration = Force . FromNewtons ( 27 ) / Mass . FromKilograms ( 9 ) ;
71
64
Assert . Equal ( acceleration , Acceleration . FromMetersPerSecondSquared ( 3 ) ) ;
72
65
}
73
-
66
+
74
67
[ Fact ]
75
68
public void ForceDividedByAccelerationEqualsMass ( )
76
69
{
@@ -85,12 +78,6 @@ public void ForceDividedByLengthEqualsForcePerLength()
85
78
Assert . Equal ( forcePerLength , ForcePerLength . FromNewtonsPerMeter ( 4 ) ) ;
86
79
}
87
80
88
- [ Fact ]
89
- public void MassByAccelerationEqualsForceUsingDouble ( )
90
- {
91
- var force = Force . FromMassByAcceleration ( Mass . FromKilograms ( 9 ) , 3 ) ;
92
- Assert . Equal ( force , Force . FromNewtons ( 27 ) ) ;
93
- }
94
81
[ Fact ]
95
82
public void MassByAccelerationEqualsForce ( )
96
83
{
0 commit comments