public void Invalid_URL_returns_null(string url) { var parser = new MatchInningsUrlParser(); var result = parser.ParseInningsOrderInMatchFromUrl(url != null ? new Uri(url, UriKind.RelativeOrAbsolute) : null); Assert.Null(result); }
public void Parses_valid_innings(string url, int expected) { var parser = new MatchInningsUrlParser(); var result = parser.ParseInningsOrderInMatchFromUrl(new Uri(url, UriKind.RelativeOrAbsolute)); Assert.Equal(expected, result); }