You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
seems like SafeMapper has issues when converting edge cases (i.e. MaxValue for double)
The test bellow fails.
[TestMethod]
public void SafeMapTest()
{
double d = double.MaxValue;
string value = d.ToString("R");
var result = SafeMap.Convert<string, double>(value);
Assert.AreEqual(d, result);
}
Any ideas?
Thanks
Alexander
The text was updated successfully, but these errors were encountered:
Hi!
seems like SafeMapper has issues when converting edge cases (i.e. MaxValue for double)
The test bellow fails.
[TestMethod]
public void SafeMapTest()
{
double d = double.MaxValue;
string value = d.ToString("R");
var result = SafeMap.Convert<string, double>(value);
Assert.AreEqual(d, result);
}
Any ideas?
Thanks
Alexander
The text was updated successfully, but these errors were encountered: