コード例 #1
0
ファイル: TsqltTestTests.cs プロジェクト: Simply360/tSQLt.NET
        public void NormalizedTestMethodName_converts_mixed_spaces_and_dashes_to_underscores()
        {
            // Arrange
            const string testClassSchemaName = "One-two-three_four-five six seven-eight";

            // Act
            var testClass = new TsqltTest(testClassSchemaName, null);
            var normalizedTestMethodName = testClass.NormalizedTestMethodName;

            // Assert
            normalizedTestMethodName.Should().Be("One_two_three_four_five_six_seven_eight");
        }
コード例 #2
0
ファイル: TsqltTestTests.cs プロジェクト: Simply360/tSQLt.NET
        public void NormalizedTestMethodName_converts_multiple_dashes_to_single_underscore()
        {
            // Arrange
            const string testClassSchemaName = "One----two-three";

            // Act
            var testClass = new TsqltTest(testClassSchemaName, null);
            var normalizedTestMethodName = testClass.NormalizedTestMethodName;

            // Assert
            normalizedTestMethodName.Should().Be("One_two_three");
        }
コード例 #3
0
ファイル: TsqltTestTests.cs プロジェクト: Simply360/tSQLt.NET
        public void NormalizedTestMethodName_converts_spaces_to_underscores()
        {
            // Arrange
            const string testClassSchemaName = "One two three";

            // Act
            var testClass = new TsqltTest(testClassSchemaName, null);
            var normalizedTestMethodName = testClass.NormalizedTestMethodName;

            // Assert
            normalizedTestMethodName.Should().Be("One_two_three");
        }
コード例 #4
0
ファイル: TsqltTestTests.cs プロジェクト: Simply360/tSQLt.NET
        public void NormalizedTestMethodName_strips_single_quotes()
        {
            // Arrange
            const string testClassSchemaName = "One's two's three's";

            // Act
            var testClass = new TsqltTest(testClassSchemaName, null);
            var normalizedTestMethodName = testClass.NormalizedTestMethodName;

            // Assert
            normalizedTestMethodName.Should().Be("Ones_twos_threes");
        }
コード例 #5
0
ファイル: TsqltTestTests.cs プロジェクト: Simply360/tSQLt.NET
        public void NormalizedTestMethodName_strips_slashes()
        {
            // Arrange
            const string testClassSchemaName = "One/two/three";

            // Act
            var testClass = new TsqltTest(testClassSchemaName, null);
            var normalizedTestMethodName = testClass.NormalizedTestMethodName;

            // Assert
            normalizedTestMethodName.Should().Be("Onetwothree");
        }