Permalink
Browse files

- fixed silverlight build

  • Loading branch information...
kkozmic committed Aug 14, 2011
1 parent 73490f5 commit 1d9590e52b2eb24ae61d5296275b3b2d7c2ed795
@@ -541,7 +541,7 @@
<Compile Include="Lifestyle\ScopedLifestyleExplicitAndNestingTestCase.cs" />
<Compile Include="Lifestyle\ScopedLifestyleExplicitAndTypedFactoriesTestCase.cs" />
<Compile Include="Lifestyle\ScopedLifestyleImplicitGraphScopingAndTypedFactoriesTestCase.cs" />
- <Compile Include="Lifestyle\ScopedLifestyleImplicitGraphScopingTestCase.cs" />
+ <Compile Include="Lifestyle\BoundLifestyleImplicitGraphScopingTestCase.cs" />
<Compile Include="Lifestyle\ScopedLifestyleTestCase.cs" />
<Compile Include="Lifestyle\ScopedLifetyleCustomScopesTestCase.cs" />
<Compile Include="LoggingFacility\BaseTest.cs" />
@@ -14,6 +14,7 @@
namespace CastleTests
{
+#if !SILVERLIGHT
using System.Collections.Generic;
using Castle.Core.Resource;
@@ -22,12 +23,13 @@ namespace CastleTests
using NUnit.Framework;
[TestFixture]
- public class GenericListConvenrterTestCase:AbstractContainerTestCase
+ public class GenericListConvenrterTestCase : AbstractContainerTestCase
{
[Test]
public void Can_read_component_with_dictionary_of_lists()
{
- var xml = @"<configuration>
+ var xml =
+ @"<configuration>
<components>
<component service=""IMyObject"" type=""MyObject"">
<parameters>
@@ -52,6 +54,7 @@ public void Can_read_component_with_dictionary_of_lists()
Assert.AreEqual(1, item.Count);
}
}
+
public interface IMyObject
{
int Count { get; }
@@ -66,7 +69,10 @@ public MyObject(IDictionary<int, IList<string>> stuff)
this.stuff = stuff;
}
- public virtual int Count { get { return stuff.Count; } }
+ public virtual int Count
+ {
+ get { return stuff.Count; }
+ }
}
-
+#endif
}
@@ -23,7 +23,7 @@ namespace CastleTests.Lifestyle
using NUnit.Framework;
- public class ScopedLifestyleImplicitGraphScopingTestCase : AbstractContainerTestCase
+ public class BoundLifestyleImplicitGraphScopingTestCase : AbstractContainerTestCase
{
[Test]
public void Scoped_component_created_for_outermost_sub_graph()
@@ -208,7 +208,7 @@ public void Scoped_component_released_when_releasing_root_disposable()
public void Scoped_component_reused()
{
Container.Register(
- Component.For<A>().LifeStyle.BoundTo<CBA>(),
+ Component.For<A>().LifestyleBoundTo<CBA>(),
Component.For<B>().LifeStyle.Transient,
Component.For<CBA>().LifeStyle.Transient);
@@ -26,7 +26,7 @@ namespace CastleTests.Lifestyle
[TestFixture]
[Ignore("This althouth initially looked as a good idea quickly gets out of hand and we can't really support it.")]
- public class ScopedLifestyleAndTypedFactoriesTestCase : AbstractContainerTestCase
+ public class BoundLifestyleAndTypedFactoriesTestCase : AbstractContainerTestCase
{
protected override void AfterContainerCreated()
{

0 comments on commit 1d9590e

Please sign in to comment.