public void GetMachineNameForNamedServer()
        {
            string testMachineName = "testmachine";
            string machineName     = DisasterRecoveryFileValidator.GetMachineName(string.Format("{0}\\testserver", testMachineName));

            Assert.True(testMachineName == machineName);
        }
        public void GetMachineNameForLocalServer()
        {
            string machineName = DisasterRecoveryFileValidator.GetMachineName(DisasterRecoveryFileValidator.LocalSqlServer);

            Assert.True(System.Environment.MachineName == machineName);
        }