Skip to content

Commit

Permalink
Update invalid test - can't register abstract classes.
Browse files Browse the repository at this point in the history
  • Loading branch information
tillig committed Oct 1, 2024
1 parent 01bf166 commit dcecfa5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/Autofac.Extras.Moq.Test/MoqRegistrationHandlerFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ public void RegistrationForCreatedType_IsHandled()

Assert.NotEmpty(registrations);

createdServiceTypes.Add(typeof(TestAbstractClass));
registrations = handler.RegistrationsFor(new TypedService(typeof(TestAbstractClass)), s => Enumerable.Empty<ServiceRegistration>());
createdServiceTypes.Add(typeof(TestImplementationOneB));
registrations = handler.RegistrationsFor(new TypedService(typeof(TestImplementationOneB)), s => Enumerable.Empty<ServiceRegistration>());

Assert.NotEmpty(registrations);
}
Expand Down

0 comments on commit dcecfa5

Please sign in to comment.