public void ShouldResetTheServiceLocator() { //Arrange ServiceLocator.SetLocatorProvider(A.Fake <IServiceLocator>); var containerExtension = new AutofacExtension(registrationHelper, options); containerExtension.Run(); //Act containerExtension.ResetServiceLocator(); //Assert Assert.IsNull(ServiceLocator.Current); }