@@ -42,7 +42,7 @@ public abstract partial class RatioTestsBase
42
42
public abstract double PartsPerMillionsInOneDecimalFraction { get ; }
43
43
public abstract double PartsPerThousandsInOneDecimalFraction { get ; }
44
44
public abstract double PartsPerTrillionsInOneDecimalFraction { get ; }
45
- public abstract double PercentsInOneDecimalFraction { get ; }
45
+ public abstract double PercentInOneDecimalFraction { get ; }
46
46
47
47
[ Test ]
48
48
public void DecimalFractionToRatioUnits ( )
@@ -53,7 +53,7 @@ public void DecimalFractionToRatioUnits()
53
53
Assert . AreEqual ( PartsPerMillionsInOneDecimalFraction , decimalfraction . PartsPerMillions , Delta ) ;
54
54
Assert . AreEqual ( PartsPerThousandsInOneDecimalFraction , decimalfraction . PartsPerThousands , Delta ) ;
55
55
Assert . AreEqual ( PartsPerTrillionsInOneDecimalFraction , decimalfraction . PartsPerTrillions , Delta ) ;
56
- Assert . AreEqual ( PercentsInOneDecimalFraction , decimalfraction . Percents , Delta ) ;
56
+ Assert . AreEqual ( PercentInOneDecimalFraction , decimalfraction . Percent , Delta ) ;
57
57
}
58
58
59
59
[ Test ]
@@ -64,7 +64,7 @@ public void FromValueAndUnit()
64
64
Assert . AreEqual ( 1 , Ratio . From ( 1 , RatioUnit . PartsPerMillion ) . PartsPerMillions , Delta ) ;
65
65
Assert . AreEqual ( 1 , Ratio . From ( 1 , RatioUnit . PartsPerThousand ) . PartsPerThousands , Delta ) ;
66
66
Assert . AreEqual ( 1 , Ratio . From ( 1 , RatioUnit . PartsPerTrillion ) . PartsPerTrillions , Delta ) ;
67
- Assert . AreEqual ( 1 , Ratio . From ( 1 , RatioUnit . Percent ) . Percents , Delta ) ;
67
+ Assert . AreEqual ( 1 , Ratio . From ( 1 , RatioUnit . Percent ) . Percent , Delta ) ;
68
68
}
69
69
70
70
@@ -77,7 +77,7 @@ public void As()
77
77
Assert . AreEqual ( PartsPerMillionsInOneDecimalFraction , decimalfraction . As ( RatioUnit . PartsPerMillion ) , Delta ) ;
78
78
Assert . AreEqual ( PartsPerThousandsInOneDecimalFraction , decimalfraction . As ( RatioUnit . PartsPerThousand ) , Delta ) ;
79
79
Assert . AreEqual ( PartsPerTrillionsInOneDecimalFraction , decimalfraction . As ( RatioUnit . PartsPerTrillion ) , Delta ) ;
80
- Assert . AreEqual ( PercentsInOneDecimalFraction , decimalfraction . As ( RatioUnit . Percent ) , Delta ) ;
80
+ Assert . AreEqual ( PercentInOneDecimalFraction , decimalfraction . As ( RatioUnit . Percent ) , Delta ) ;
81
81
}
82
82
83
83
[ Test ]
@@ -89,7 +89,7 @@ public void ConversionRoundTrip()
89
89
Assert . AreEqual ( 1 , Ratio . FromPartsPerMillions ( decimalfraction . PartsPerMillions ) . DecimalFractions , Delta ) ;
90
90
Assert . AreEqual ( 1 , Ratio . FromPartsPerThousands ( decimalfraction . PartsPerThousands ) . DecimalFractions , Delta ) ;
91
91
Assert . AreEqual ( 1 , Ratio . FromPartsPerTrillions ( decimalfraction . PartsPerTrillions ) . DecimalFractions , Delta ) ;
92
- Assert . AreEqual ( 1 , Ratio . FromPercents ( decimalfraction . Percents ) . DecimalFractions , Delta ) ;
92
+ Assert . AreEqual ( 1 , Ratio . FromPercent ( decimalfraction . Percent ) . DecimalFractions , Delta ) ;
93
93
}
94
94
95
95
[ Test ]
0 commit comments