Update the expected exception from the DI container

This commit is contained in:
Victor Hurdugaci 2014-12-03 14:13:21 -08:00
parent f99a29a12c
commit 0654c86d61
1 changed files with 1 additions and 1 deletions

View File

@ -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<Exception>(() => SecurityStampValidator.ValidateIdentityAsync(context));
var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => SecurityStampValidator.ValidateIdentityAsync(context));
Assert.True(ex.Message.Contains("No service for type 'Microsoft.Framework.OptionsModel.IOptions"));
}