public void GetFullObjectNameFromQuickInfoWithValidStringsandIgnoreCaseTest()
        {
            Scripter peekDefinition = new Scripter(null, null);
            string   objectName     = "testtable";
            string   quickInfoText  = "table master.dbo.testTable";
            string   result         = peekDefinition.GetFullObjectNameFromQuickInfo(quickInfoText, objectName, StringComparison.OrdinalIgnoreCase);
            string   expected       = "master.dbo.testTable";

            Assert.Equal(expected, result);
        }
        public void GetFullObjectNameFromQuickInfoWithNullStringsTest()
        {
            Scripter peekDefinition = new Scripter(null, null);
            string   expected       = null;

            string objectName    = null;
            string quickInfoText = "table master.dbo.testTable";
            string result        = peekDefinition.GetFullObjectNameFromQuickInfo(quickInfoText, objectName, StringComparison.Ordinal);

            Assert.Equal(expected, result);

            quickInfoText = null;
            objectName    = "tableName";
            result        = peekDefinition.GetFullObjectNameFromQuickInfo(quickInfoText, objectName, StringComparison.Ordinal);
            Assert.Equal(expected, result);

            quickInfoText = null;
            objectName    = null;
            result        = peekDefinition.GetFullObjectNameFromQuickInfo(quickInfoText, objectName, StringComparison.Ordinal);
            Assert.Equal(expected, result);
        }