Ejemplo n.º 1
0
        protected override void OnPause()
        {
            if (_invalid_state)
            {
                return;
            }

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


            if (!_control.PauseVMX(_vmx_file))
            {
                WriteLog(
                    "Pausing specified vmx was failed.\n" +
                    "vmx file is '{0}'.", EventLogEntryType.Error, _vmx_file);
            }
            else
            {
                WriteLog(
                    "Pausing specified vmx was finished successfully.\n" +
                    "vmx file is '{0}'.", EventLogEntryType.Information, _vmx_file);
            }
        }
Ejemplo n.º 2
0
        public void PauseVMXTest()
        {
            IVMController target   = CreateIVMController();
            bool          expected = true;
            bool          actual;

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