@@ -1094,7 +1094,7 @@ public void DataTypes_Parsing_DurationDays()
1094
1094
[ TestMethod ]
1095
1095
public void DataTypes_Parsing_DurationHours ( )
1096
1096
{
1097
- var timex = new TimexProperty ( "PT5H " ) ;
1097
+ var timex = new TimexProperty ( "PT5.5H " ) ;
1098
1098
CollectionAssert . AreEquivalent ( new [ ] { Constants . TimexTypes . Duration } , timex . Types . ToList ( ) ) ;
1099
1099
1100
1100
Assert . IsNull ( timex . Year ) ;
@@ -1113,7 +1113,7 @@ public void DataTypes_Parsing_DurationHours()
1113
1113
Assert . IsNull ( timex . Months ) ;
1114
1114
Assert . IsNull ( timex . Weeks ) ;
1115
1115
Assert . IsNull ( timex . Days ) ;
1116
- Assert . AreEqual ( 5 , timex . Hours ) ;
1116
+ Assert . AreEqual ( 5.5m , timex . Hours ) ;
1117
1117
Assert . IsNull ( timex . Minutes ) ;
1118
1118
Assert . IsNull ( timex . Seconds ) ;
1119
1119
Assert . IsNull ( timex . Now ) ;
@@ -1122,7 +1122,7 @@ public void DataTypes_Parsing_DurationHours()
1122
1122
[ TestMethod ]
1123
1123
public void DataTypes_Parsing_DurationMinutes ( )
1124
1124
{
1125
- var timex = new TimexProperty ( "PT30M " ) ;
1125
+ var timex = new TimexProperty ( "PT30.5M " ) ;
1126
1126
CollectionAssert . AreEquivalent ( new [ ] { Constants . TimexTypes . Duration } , timex . Types . ToList ( ) ) ;
1127
1127
1128
1128
Assert . IsNull ( timex . Year ) ;
@@ -1142,15 +1142,15 @@ public void DataTypes_Parsing_DurationMinutes()
1142
1142
Assert . IsNull ( timex . Weeks ) ;
1143
1143
Assert . IsNull ( timex . Days ) ;
1144
1144
Assert . IsNull ( timex . Hours ) ;
1145
- Assert . AreEqual ( 30 , timex . Minutes ) ;
1145
+ Assert . AreEqual ( 30.5m , timex . Minutes ) ;
1146
1146
Assert . IsNull ( timex . Seconds ) ;
1147
1147
Assert . IsNull ( timex . Now ) ;
1148
1148
}
1149
1149
1150
1150
[ TestMethod ]
1151
1151
public void DataTypes_Parsing_DurationSeconds ( )
1152
1152
{
1153
- var timex = new TimexProperty ( "PT45S " ) ;
1153
+ var timex = new TimexProperty ( "PT45.5S " ) ;
1154
1154
CollectionAssert . AreEquivalent ( new [ ] { Constants . TimexTypes . Duration } , timex . Types . ToList ( ) ) ;
1155
1155
1156
1156
Assert . IsNull ( timex . Year ) ;
@@ -1171,7 +1171,7 @@ public void DataTypes_Parsing_DurationSeconds()
1171
1171
Assert . IsNull ( timex . Days ) ;
1172
1172
Assert . IsNull ( timex . Hours ) ;
1173
1173
Assert . IsNull ( timex . Minutes ) ;
1174
- Assert . AreEqual ( 45 , timex . Seconds ) ;
1174
+ Assert . AreEqual ( 45.5m , timex . Seconds ) ;
1175
1175
Assert . IsNull ( timex . Now ) ;
1176
1176
}
1177
1177
}
0 commit comments