Higher coverage

This commit is contained in:
xuef
2023-11-29 14:06:33 +00:00
parent 96f9bf5bd9
commit 7279a89f4f
+14 -4
View File
@@ -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
}
}