Microsoft.WindowsAzure.Commands.Test.Utilities.Common.AzureAssert.RuntimeUrlAndIdExists C# (CSharp) Method

RuntimeUrlAndIdExists() public static method

public static RuntimeUrlAndIdExists ( Task tasks, string runtimeValue ) : void
tasks Task
runtimeValue string
return void
        public static void RuntimeUrlAndIdExists(Task[] tasks, string runtimeValue)
        {
            Assert.IsTrue(Array.Exists<Task>(tasks, t => Array.Exists<Variable>(t.Environment,
                e => e.value != null && e.value.Contains(runtimeValue))));
            Assert.IsTrue(Array.Exists<Task>(tasks, t => Array.Exists<Variable>(t.Environment,
                e => e.value != null && e.value.Contains(string.Format("http://az413943.vo.msecnd.net/{0}/", runtimeValue)))));
        }