Higher coverage.

This commit is contained in:
xuef
2023-11-29 14:07:13 +00:00
parent 7279a89f4f
commit f868fe21e8
@@ -54,6 +54,7 @@ public class BasicTests
response.EnsureSuccessStatusCode(); // Status Code 200-299
}
[TestMethod]
[DataRow("/games/12345/move/e4")]
[DataRow("/games/12345/move/e5")]
[DataRow("/games/12345/move/Nf3")]
@@ -63,4 +64,13 @@ public class BasicTests
var response = await _http.PostAsync(_endpointUrl + url, new StringContent(""));
response.EnsureSuccessStatusCode(); // Status Code 200-299
}
[TestMethod]
[DataRow("/games/12345/move/O-O")]
[DataRow("/games/12345/move/O-O-O")]
public async Task InvalidMoveChess(string url)
{
var response = await _http.PostAsync(_endpointUrl + url, new StringContent(""));
Assert.AreEqual(400, (int)response.StatusCode);
}
}