コード例 #1
0
        public void Test_060()
        {
            // Arrange
            WebApplicationTest.Infrastructure.Utility utility =
                new WebApplicationTest.Infrastructure.Utility();

            // Act
            string actual =
                utility.FixText(text: "    Hello,  World!    ");

            string expected = "Hello, World!";

            // Assert
            Xunit.Assert.Equal
                (expected: expected, actual: actual);
        }
コード例 #2
0
        public void Test_010()
        {
            // Arrange
            WebApplicationTest.Infrastructure.Utility utility =
                new WebApplicationTest.Infrastructure.Utility();

            // Act
            string actual =
                utility.FixText(text: null);

            string expected = string.Empty;

            // Assert
            Xunit.Assert.Equal
                (expected: expected, actual: actual);
        }