@@ -42,7 +42,8 @@ public abstract partial class ForceTestsBase
42
42
protected abstract double KiloPondsInOneNewton { get ; }
43
43
protected abstract double NewtonsInOneNewton { get ; }
44
44
protected abstract double PoundalsInOneNewton { get ; }
45
- protected abstract double PoundForcesInOneNewton { get ; }
45
+ protected abstract double PoundsForceInOneNewton { get ; }
46
+ protected abstract double TonnesForceInOneNewton { get ; }
46
47
47
48
// ReSharper disable VirtualMemberNeverOverriden.Global
48
49
protected virtual double DyneTolerance { get { return 1e-5 ; } }
@@ -51,7 +52,8 @@ public abstract partial class ForceTestsBase
51
52
protected virtual double KiloPondsTolerance { get { return 1e-5 ; } }
52
53
protected virtual double NewtonsTolerance { get { return 1e-5 ; } }
53
54
protected virtual double PoundalsTolerance { get { return 1e-5 ; } }
54
- protected virtual double PoundForcesTolerance { get { return 1e-5 ; } }
55
+ protected virtual double PoundsForceTolerance { get { return 1e-5 ; } }
56
+ protected virtual double TonnesForceTolerance { get { return 1e-5 ; } }
55
57
// ReSharper restore VirtualMemberNeverOverriden.Global
56
58
57
59
[ Test ]
@@ -64,7 +66,8 @@ public void NewtonToForceUnits()
64
66
Assert . AreEqual ( KiloPondsInOneNewton , newton . KiloPonds , KiloPondsTolerance ) ;
65
67
Assert . AreEqual ( NewtonsInOneNewton , newton . Newtons , NewtonsTolerance ) ;
66
68
Assert . AreEqual ( PoundalsInOneNewton , newton . Poundals , PoundalsTolerance ) ;
67
- Assert . AreEqual ( PoundForcesInOneNewton , newton . PoundForces , PoundForcesTolerance ) ;
69
+ Assert . AreEqual ( PoundsForceInOneNewton , newton . PoundsForce , PoundsForceTolerance ) ;
70
+ Assert . AreEqual ( TonnesForceInOneNewton , newton . TonnesForce , TonnesForceTolerance ) ;
68
71
}
69
72
70
73
[ Test ]
@@ -76,7 +79,8 @@ public void FromValueAndUnit()
76
79
Assert . AreEqual ( 1 , Force . From ( 1 , ForceUnit . KiloPond ) . KiloPonds , KiloPondsTolerance ) ;
77
80
Assert . AreEqual ( 1 , Force . From ( 1 , ForceUnit . Newton ) . Newtons , NewtonsTolerance ) ;
78
81
Assert . AreEqual ( 1 , Force . From ( 1 , ForceUnit . Poundal ) . Poundals , PoundalsTolerance ) ;
79
- Assert . AreEqual ( 1 , Force . From ( 1 , ForceUnit . PoundForce ) . PoundForces , PoundForcesTolerance ) ;
82
+ Assert . AreEqual ( 1 , Force . From ( 1 , ForceUnit . PoundForce ) . PoundsForce , PoundsForceTolerance ) ;
83
+ Assert . AreEqual ( 1 , Force . From ( 1 , ForceUnit . TonneForce ) . TonnesForce , TonnesForceTolerance ) ;
80
84
}
81
85
82
86
[ Test ]
@@ -89,7 +93,8 @@ public void As()
89
93
Assert . AreEqual ( KiloPondsInOneNewton , newton . As ( ForceUnit . KiloPond ) , KiloPondsTolerance ) ;
90
94
Assert . AreEqual ( NewtonsInOneNewton , newton . As ( ForceUnit . Newton ) , NewtonsTolerance ) ;
91
95
Assert . AreEqual ( PoundalsInOneNewton , newton . As ( ForceUnit . Poundal ) , PoundalsTolerance ) ;
92
- Assert . AreEqual ( PoundForcesInOneNewton , newton . As ( ForceUnit . PoundForce ) , PoundForcesTolerance ) ;
96
+ Assert . AreEqual ( PoundsForceInOneNewton , newton . As ( ForceUnit . PoundForce ) , PoundsForceTolerance ) ;
97
+ Assert . AreEqual ( TonnesForceInOneNewton , newton . As ( ForceUnit . TonneForce ) , TonnesForceTolerance ) ;
93
98
}
94
99
95
100
[ Test ]
@@ -102,7 +107,8 @@ public void ConversionRoundTrip()
102
107
Assert . AreEqual ( 1 , Force . FromKiloPonds ( newton . KiloPonds ) . Newtons , KiloPondsTolerance ) ;
103
108
Assert . AreEqual ( 1 , Force . FromNewtons ( newton . Newtons ) . Newtons , NewtonsTolerance ) ;
104
109
Assert . AreEqual ( 1 , Force . FromPoundals ( newton . Poundals ) . Newtons , PoundalsTolerance ) ;
105
- Assert . AreEqual ( 1 , Force . FromPoundForces ( newton . PoundForces ) . Newtons , PoundForcesTolerance ) ;
110
+ Assert . AreEqual ( 1 , Force . FromPoundsForce ( newton . PoundsForce ) . Newtons , PoundsForceTolerance ) ;
111
+ Assert . AreEqual ( 1 , Force . FromTonnesForce ( newton . TonnesForce ) . Newtons , TonnesForceTolerance ) ;
106
112
}
107
113
108
114
[ Test ]
0 commit comments