Пример #1
0
 public void RegistryWriteExecute()
 {
     RegistryWrite task = new RegistryWrite();
     task.BuildEngine = new MockBuild();
     task.KeyName = @"HKEY_CURRENT_USER\SOFTWARE\MSBuildTasks";
     task.ValueName = "RegistryWrite";
     task.Value = "Test Write";
     Assert.IsTrue(task.Execute(), "Execute Failed");
 }
Пример #2
0
        public void RegistryWriteExecute()
        {
            RegistryWrite task = new RegistryWrite();

            task.BuildEngine = new MockBuild();
            task.KeyName     = @"HKEY_CURRENT_USER\SOFTWARE\MSBuildTasks";
            task.ValueName   = "RegistryWrite";
            task.Value       = "Test Write";
            Assert.IsTrue(task.Execute(), "Execute Failed");
        }