Beispiel #1
0
        public void InferScriptTagFromFileNameTest_SuccessNoSpaces()
        {
            string        scriptFileName = @"C:\mypath\path2\CR2123456-test script.sql";
            List <string> regexFormats   = ScriptTagProcessingTest.regex;
            string        expected       = "CR2123456";
            string        actual;

            actual = ScriptTagProcessing.InferScriptTagFromFileName(scriptFileName, regexFormats);
            Assert.AreEqual(expected, actual);
        }
Beispiel #2
0
        public void InferScriptTagFromFileNameTest_NoCrMatch_EmbeddedText()
        {
            string        scriptFileName = @"C:\mypath\path2\MyCR# 2123456-test script.sql";
            List <string> regexFormats   = ScriptTagProcessingTest.regex;
            string        expected       = "";
            string        actual;

            actual = ScriptTagProcessing.InferScriptTagFromFileName(scriptFileName, regexFormats);
            Assert.AreEqual(expected, actual);
        }