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"); }