Higher coverage
This commit is contained in:
@@ -44,13 +44,23 @@ public class BasicTests
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
[DataRow("/games/12345")]
|
||||
[DataRow("/games/12345/ascii")]
|
||||
[DataRow("/games/12345/fen")]
|
||||
[DataRow("/games/12345/pgn")]
|
||||
[DataRow("/games/12345.json")]
|
||||
[DataRow("/games/12345.ascii")]
|
||||
[DataRow("/games/12345.fen")]
|
||||
[DataRow("/games/12345.pgn")]
|
||||
public async Task GetChess(string url)
|
||||
{
|
||||
var response = await _http.GetAsync(_endpointUrl + url);
|
||||
response.EnsureSuccessStatusCode(); // Status Code 200-299
|
||||
}
|
||||
|
||||
[DataRow("/games/12345/move/e4")]
|
||||
[DataRow("/games/12345/move/e5")]
|
||||
[DataRow("/games/12345/move/Nf3")]
|
||||
[DataRow("/games/12345/move/Nc3")]
|
||||
public async Task MoveChess(string url)
|
||||
{
|
||||
var response = await _http.PostAsync(_endpointUrl + url, new StringContent(""));
|
||||
response.EnsureSuccessStatusCode(); // Status Code 200-299
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user