예제 #1
0
        public void AlfaRomeo_ReturnsAString()
        {
            // Arrange
            var controller = new CarController();

            // Act
            var result = controller.AlfaRomeo();

            // Assert

            var contentResult = Assert.IsAssignableFrom <ContentResult>(result);
            var actual        = contentResult.Content;
            var expected      = "Alfa Romeo is another sport brand. Returned in text.";

            Assert.Equal(expected, actual.ToString());
        }