public async Task ReturnAckOnSetHandlerPosition() { //Arrange var(X, Y, Z) = (10, 20, 30); //Act var response = await HandlerApi.SetHandlerPosition(X, Y, Z); //Assert response.Content.Status.Should().Equals(CommandStatus.Ack); }
public async Task ReturnOkOnSetHandlerPosition() { //Arrange var(X, Y, Z) = (10, 20, 30); //Act var response = await HandlerApi.SetHandlerPosition(X, Y, Z); //Assert Assert.That(response.StatusCode, Is.EqualTo(HttpStatusCode.OK), "response.StatusCode should be EqualTo HttpStatusCode.OK"); }
public async Task ReturnPositionOnSetHandlerPosition(int x, int y, int z) { //Arange var(X, Y, Z) = (x, y, z); //Act var response = await HandlerApi.SetHandlerPosition(X, Y, Z); //Assert Assert.AreEqual("Move", response.Content?.Type, "Type should be Move"); Assert.AreEqual(X, response.Content?.position.X); Assert.AreEqual(Y, response.Content?.position.Y); Assert.AreEqual(Z, response.Content?.position.Z); }