public static void StartupTaskExists(Task[] tasks, string startupCommand) { Assert.IsTrue(Array.Exists<Task>(tasks, t => t.commandLine == startupCommand)); }