try {
Decimal.Parse ("+15", nf);
} catch (FormatException) {
- // ok
+ return;
}
+
+ Assert.Fail ("Expected FormatException");
}
[Test] // bug #4814
try {
Decimal.Parse ("-15", nf);
} catch (FormatException) {
- // ok
+ return;
}
+
+ Assert.Fail ("Expected FormatException");
}
[Test] // bug #4814
try {
Decimal.Parse ("15+", nf);
} catch (FormatException) {
- // ok
+ return;
}
+
+ Assert.Fail ("Expected FormatException");
}
[Test] // bug #4814
try {
Decimal.Parse ("15-", nf);
} catch (FormatException) {
- // ok
+ return;
}
+
+ Assert.Fail ("Expected FormatException");
}
}
}