public void GetDefinitionUsingQuickInfoWithoutConnectionTest()
        {
            Scripter         peekDefinition = new Scripter(null, null);
            string           objectName     = "tableName";
            string           quickInfoText  = "table master.dbo.tableName";
            DefinitionResult result         = peekDefinition.GetDefinitionUsingQuickInfoText(quickInfoText, objectName, null);

            Assert.NotNull(result);
            Assert.True(result.IsErrorResult);
        }
        public void GetDefinitionUsingQuickInfoTextWithNonexistentObjectTest()
        {
            ConnectionInfo   connInfo         = LiveConnectionHelper.InitLiveConnectionInfoForDefinition();
            ServerConnection serverConnection = LiveConnectionHelper.InitLiveServerConnectionForDefinition(connInfo);

            Scripter scripter      = new Scripter(serverConnection, connInfo);
            string   objectName    = "doesNotExist";
            string   schemaName    = "sys";
            string   quickInfoText = "view master.sys.objects";

            DefinitionResult result = scripter.GetDefinitionUsingQuickInfoText(quickInfoText, objectName, schemaName);

            Assert.NotNull(result);
            Assert.True(result.IsErrorResult);
        }