public void インデックス新規作成_0件Test()
        {
            const string testPath = @"C:\Workspace\Repo\Git\MyProject\PokudaSearch.Test\TestData\Zero";

            _indexBuildForm.TargetDirText.SetWindowText(testPath);
            //参照ボタン
            Async async = new Async();

            _indexBuildForm.ReferenceButton.EmulateClick(async);
            var    dirDlg = _indexBuildForm.Window.WaitForNextModal();
            string title  = dirDlg.GetWindowText();

            Assert.AreEqual(title, "フォルダーの参照");

            //OKボタンクリック
            var okButton = dirDlg.IdentifyFromWindowText("OK");

            okButton.SendMessage(FriendlyUtil.BM_CLICK, IntPtr.Zero, IntPtr.Zero);
            string dirPath = _indexBuildForm.TargetDirText.GetWindowText();

            Assert.AreEqual(dirPath, testPath);

            //インデックス作成
            Async async2 = new Async();

            _indexBuildForm.UpdateIndexButton.EmulateClick(async2);

            //0件メッセージ
            string retMsg = FriendlyUtil.GetMsgBoxMessage(_indexBuildForm.Window, async2);

            Assert.AreEqual(retMsg, AppDriver.GetMsg("MSG_INDEXED_COUNT_ZERO"));
        }
        public void 存在しないフォルダを指定Test()
        {
            _indexBuildForm.TargetDirText.SetWindowText(@"C:\Temp2");

            Async async = new Async();

            _indexBuildForm.UpdateIndexButton.EmulateClick(async);
            string retMsg = FriendlyUtil.GetMsgBoxMessage(_indexBuildForm.Window, async);

            Assert.AreEqual(retMsg, AppDriver.GetMsg("ERR_DIR_NOT_FOUND"));
        }