I came to know that through FluentAssertions
library we can combine multiple assertion in a single like. Just want to know if below 2 assert can be combined in a single line?
// Act
IActionResult actionResult = controller.Update();
// Assert
((ObjectResult)actionResult).StatusCode.Should().Be(200);
((ObjectResult)actionResult).Value.Should().BeEquivalentTo("updated");