コード例 #1
0
        public void JsonActionMethod()
        {
            // Arrange
            var exampleController = new ExampleController();

            // Act
            var jsonResult = exampleController.JsonIndex();

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