public void Unit_AboutController_Get() { // Arrange var target = new AboutController(); // Act var actual = target.Get(); // Assert Assert.AreEqual("Fabrikam Fiber (c) 2014.", actual); //Assert.AreEqual("Your application description page.", actual); }
public void Get_Returns_OkObjectResult() { //Arrange var controller = new AboutController(); //Act var result = controller.Get(); //Assert var okResult = result.Should().BeOfType <OkObjectResult>().Subject; okResult.StatusCode.Should().Be(200); okResult.Value.Should().BeEquivalentTo(new { data = "This is About Details v1" }); }