Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

-SL buidl should now pass

  • Loading branch information...
commit 30c266f02566f38df12208fa538c97d51abf6572 1 parent ddb4abf
@kkozmic kkozmic authored
View
8 src/Castle.Windsor.Tests/Bugs/IoC-83.cs
@@ -14,6 +14,8 @@
namespace Castle.MicroKernel.Tests.Bugs
{
+ using System;
+
using Castle.MicroKernel.ComponentActivator;
using Castle.MicroKernel.Registration;
using Castle.Windsor.Tests.Components;
@@ -33,12 +35,10 @@ public void When_attemting_to_resolve_component_with_nonpublic_ctor_should_throw
kernel.Register(Component.For<HasProtectedConstructor>());
- var exception =
+ Exception exception =
Assert.Throws<ComponentActivatorException>(() => kernel.Resolve<HasProtectedConstructor>());
-#if !SILVERLIGHT
- exception = exception.InnerException as ComponentActivatorException;
-#endif
+ exception = exception.InnerException;
Assert.IsNotNull(exception);
StringAssert.Contains("public", exception.Message, "Exception should say that constructor has to be public.");
View
3  src/Castle.Windsor.Tests/KeySearchNamingSubSystemTestCase.cs
@@ -99,8 +99,9 @@ public void Falls_back_to_returning_first_when_delegate_finds_no_match()
}
[Test]
- public void MultiThreadedAddResolve([Values(100)] int threadCount)
+ public void MultiThreadedAddResolve()
{
+ var threadCount = 100;
var locker = new object();
var list = new List<string>();
var waitEvent = new ManualResetEvent(false);
View
4 src/Castle.Windsor.Tests/TypeNameConverterTestCase.cs
@@ -139,6 +139,10 @@ public void Can_load_open_generic_type_by_name()
Assert.AreEqual(type, result);
}
+
+#if SILVERLIGHT
+ [Ignore("Type conversion does not work in tests under Silverlight because the assembly is not in the starting manifest (of Statlight)")]
+#endif
[Test]
public void Can_load_type_from_loaded_assembly_by_just_name()
{
Please sign in to comment.
Something went wrong with that request. Please try again.