public void Should_ReturnDefaultDistanceUnits_IfStringDoesNotMatch() { var unit = "obviouslyNotAValidOne"; var result = DistanceUnits.FromString(unit); Assert.Equal(default, result);
public void Should_ReturnDistanceUnitFromString(string gridType) { var result = DistanceUnits.FromString(gridType); Assert.Equal(result.ToString(), gridType); }