Exemplo n.º 1
0
        public void JsonActionMethod()
        {
            // Arrange
            ExampleController controller = new ExampleController();

            // Act
            JsonResult result = controller.IndexJson();

            // Assert
            Assert.Equal(new[] { "Alice", "Bob", "Joe" }, result.Value);
        }