diff --git a/src/Castle.Windsor.Tests/MicroKernelTestCase.cs b/src/Castle.Windsor.Tests/MicroKernelTestCase.cs index 4b0eb5dd21..a1895af193 100644 --- a/src/Castle.Windsor.Tests/MicroKernelTestCase.cs +++ b/src/Castle.Windsor.Tests/MicroKernelTestCase.cs @@ -284,7 +284,7 @@ public void ShouldNotRegisterAbstractClassAsComponentImplementation_With_Lifesty var expectedMessage = string.Format( - "Type Castle.MicroKernel.Tests.ClassComponents.BaseCommonComponent is abstract.{0} As such, it is not possible to instansiate it as implementation of service 'abstract'. Did you forget to proxy it?", + "Type Castle.MicroKernel.Tests.ClassComponents.BaseCommonComponent is abstract.{0} As such, it is not possible to instantiate it as implementation of service 'abstract'. Did you forget to proxy it?", Environment.NewLine); var exception = Assert.Throws(typeof(ComponentRegistrationException), () => @@ -298,7 +298,7 @@ public void ShouldNotRegisterAbstractClassAsComponentImplementation_With_Lifesty Kernel.Register(Component.For().ImplementedBy().Named("abstract").LifeStyle.Pooled); var expectedMessage = string.Format( - "Type Castle.MicroKernel.Tests.ClassComponents.BaseCommonComponent is abstract.{0} As such, it is not possible to instansiate it as implementation of service 'abstract'. Did you forget to proxy it?", + "Type Castle.MicroKernel.Tests.ClassComponents.BaseCommonComponent is abstract.{0} As such, it is not possible to instantiate it as implementation of service 'abstract'. Did you forget to proxy it?", Environment.NewLine); var exception = Assert.Throws(typeof(ComponentRegistrationException), () => Kernel.Resolve("abstract")); @@ -312,7 +312,7 @@ public void ShouldNotRegisterAbstractClassAsComponentImplementation_With_Simple_ var expectedMessage = string.Format( - "Type Castle.MicroKernel.Tests.ClassComponents.BaseCommonComponent is abstract.{0} As such, it is not possible to instansiate it as implementation of service 'abstract'. Did you forget to proxy it?", + "Type Castle.MicroKernel.Tests.ClassComponents.BaseCommonComponent is abstract.{0} As such, it is not possible to instantiate it as implementation of service 'abstract'. Did you forget to proxy it?", Environment.NewLine); var exception = Assert.Throws(typeof(ComponentRegistrationException), () => Kernel.Resolve("abstract")); @@ -326,7 +326,7 @@ public void ShouldNotRegisterAbstractClass_With_LifestyleType_And_Override_Signa var expectedMessage = string.Format( - "Type Castle.MicroKernel.Tests.ClassComponents.BaseCommonComponent is abstract.{0} As such, it is not possible to instansiate it as implementation of service 'abstract'. Did you forget to proxy it?", + "Type Castle.MicroKernel.Tests.ClassComponents.BaseCommonComponent is abstract.{0} As such, it is not possible to instantiate it as implementation of service 'abstract'. Did you forget to proxy it?", Environment.NewLine); var exception = Assert.Throws(() => Kernel.Resolve("abstract")); @@ -340,7 +340,7 @@ public void ShouldNotRegisterAbstractClass_With_LifestyleType_Signature() var expectedMessage = string.Format( - "Type Castle.MicroKernel.Tests.ClassComponents.BaseCommonComponent is abstract.{0} As such, it is not possible to instansiate it as implementation of service 'abstract'. Did you forget to proxy it?", + "Type Castle.MicroKernel.Tests.ClassComponents.BaseCommonComponent is abstract.{0} As such, it is not possible to instantiate it as implementation of service 'abstract'. Did you forget to proxy it?", Environment.NewLine); var exception = Assert.Throws(typeof(ComponentRegistrationException), () => Kernel.Resolve("abstract")); @@ -353,7 +353,7 @@ public void ShouldNotRegisterAbstractClass_With_Simple_Signature() Kernel.Register(Component.For().Named("abstract")); var expectedMessage = string.Format( - "Type Castle.MicroKernel.Tests.ClassComponents.BaseCommonComponent is abstract.{0} As such, it is not possible to instansiate it as implementation of service 'abstract'. Did you forget to proxy it?", + "Type Castle.MicroKernel.Tests.ClassComponents.BaseCommonComponent is abstract.{0} As such, it is not possible to instantiate it as implementation of service 'abstract'. Did you forget to proxy it?", Environment.NewLine); var exception = Assert.Throws(typeof(ComponentRegistrationException), () => Kernel.Resolve("abstract")); diff --git a/src/Castle.Windsor/MicroKernel/ComponentActivator/DefaultComponentActivator.cs b/src/Castle.Windsor/MicroKernel/ComponentActivator/DefaultComponentActivator.cs index 02453d7838..f183cfa50c 100644 --- a/src/Castle.Windsor/MicroKernel/ComponentActivator/DefaultComponentActivator.cs +++ b/src/Castle.Windsor/MicroKernel/ComponentActivator/DefaultComponentActivator.cs @@ -96,7 +96,7 @@ protected virtual object CreateInstance(CreationContext context, ConstructorCand { throw new ComponentRegistrationException( string.Format( - "Type {0} is abstract.{2} As such, it is not possible to instansiate it as implementation of service '{1}'. Did you forget to proxy it?", + "Type {0} is abstract.{2} As such, it is not possible to instantiate it as implementation of service '{1}'. Did you forget to proxy it?", Model.Implementation.FullName, Model.Name, Environment.NewLine));