コード例 #1
0
ファイル: VMXService.cs プロジェクト: ssashir06/vmx-service
        protected override void OnContinue()
        {
            if (_invalid_state)
            {
                return;
            }

            if (_control == null)
            {
                WriteLog(
                    "Cannot control VMX currently.", EventLogEntryType.Error);
                return;
            }


            if (!_control.ContinueVMX(_vmx_file))
            {
                WriteLog(
                    "Continuing specified vmx was failed.\n" +
                    "vmx file is '{0}'.", EventLogEntryType.Error, _vmx_file);
            }
            else
            {
                WriteLog(
                    "Continuing specified vmx was finished successfully.\n" +
                    "vmx file is '{0}'.", EventLogEntryType.Information);
            }
        }
コード例 #2
0
        public void ContinueVMXTest()
        {
            IVMController target   = CreateIVMController();
            bool          expected = true;
            bool          actual;

            actual = target.ContinueVMX(vmx);
            Assert.AreEqual(expected, actual);
            //Assert.Inconclusive("このテストメソッドの正確性を確認します。");
        }