From 0654c86d61b976899950f9ef2d5f298787040852 Mon Sep 17 00:00:00 2001 From: Victor Hurdugaci Date: Wed, 3 Dec 2014 14:13:21 -0800 Subject: [PATCH] Update the expected exception from the DI container --- .../SecurityStampValidatorTest.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Microsoft.AspNet.Identity.Test/SecurityStampValidatorTest.cs b/test/Microsoft.AspNet.Identity.Test/SecurityStampValidatorTest.cs index 29bbe58885..5ae623e01d 100644 --- a/test/Microsoft.AspNet.Identity.Test/SecurityStampValidatorTest.cs +++ b/test/Microsoft.AspNet.Identity.Test/SecurityStampValidatorTest.cs @@ -27,7 +27,7 @@ namespace Microsoft.AspNet.Identity.Test var id = new ClaimsIdentity(IdentityOptions.ApplicationCookieAuthenticationType); var ticket = new AuthenticationTicket(id, new AuthenticationProperties { IssuedUtc = DateTimeOffset.UtcNow }); var context = new CookieValidateIdentityContext(httpContext.Object, ticket, new CookieAuthenticationOptions()); - var ex = await Assert.ThrowsAsync(() => SecurityStampValidator.ValidateIdentityAsync(context)); + var ex = await Assert.ThrowsAsync(() => SecurityStampValidator.ValidateIdentityAsync(context)); Assert.True(ex.Message.Contains("No service for type 'Microsoft.Framework.OptionsModel.IOptions")); }