public void Parse_ShouldRaiseArgumentNullException_ForNullArgument() { // Arrange. var input = (String)null; // Act. var action = new Action(() => { var result = GeographicCoordinates.Parse(input); }); // Assert. action.Should().Throw <ArgumentNullException>(); }
public void Parse_ShouldRaiseFormatException_ForInvalidFormatArgument() { // Arrange. var input = "42.42 : -32.7"; // Act. var action = new Action(() => { var result = GeographicCoordinates.Parse(input); }); // Assert. action.Should().Throw <FormatException>(); }