Microsoft.WindowsAzure.MediaServices.Client.Tests.GetKeyDeliveryUrlTests.GetHlsKeyDeliveryUrlAndFetchKeyWithSWTAuthenticationWhenIssuerIsStringGuidShouldThrow C# (CSharp) Method

GetHlsKeyDeliveryUrlAndFetchKeyWithSWTAuthenticationWhenIssuerIsStringGuidShouldThrow() private method

        public void GetHlsKeyDeliveryUrlAndFetchKeyWithSWTAuthenticationWhenIssuerIsStringGuidShouldThrow()
        {
            string audience = "http://www.microsoft.com";
            string issuer = Guid.NewGuid().ToString();
            try
            {
                FetchKeyWithSWTToken(audience, issuer);
            }
            catch (InvalidDataContractException ex)
            {
                Assert.IsTrue(ex.Message == "SWT token type template validation error.  template.Issuer is not valid absolute Uri.");
                throw;
            }
        }