public void Null_interstellar_is_not_parsed() { Check.That(DistanceParser.ParseInterstellarDistance(null)).IsNull(); }
public void Empty_interstellar_is_not_parsed() { Check.That(DistanceParser.ParseInterstellarDistance("")).IsNull(); }
public void Invalid_interstellar_is_not_parsed() { Check.That(DistanceParser.ParseInterstellarDistance("not a distance")).IsNull(); }
public void Interstellar_distance_with_comma_decimal_separator_can_be_parsed() { Check.That(DistanceParser.ParseInterstellarDistance("12345,6789")).IsEqualTo(12345.6789); }
public void Negative_interstellar_distance_is_not_parsed() { Check.That(DistanceParser.ParseInterstellarDistance("-12345")).IsEqualTo(null); }
public void Interstellar_distance_without_any_decimal_separator_can_be_parsed() { Check.That(DistanceParser.ParseInterstellarDistance("12345")).IsEqualTo(12345); }