Updating Autofac.dll with small change for implicit collections issue

--HG--
branch : dev
This commit is contained in:
Louis DeJardin
2010-04-21 13:51:26 -07:00
parent e750edb514
commit 583138c7ed
2 changed files with 29 additions and 24 deletions

Binary file not shown.

View File

@@ -3,17 +3,22 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using Autofac;
using Autofac.Builder;
using Autofac.Core;
using Autofac.Core.Activators.Delegate;
using Autofac.Core.Lifetime;
using Autofac.Core.Registration;
using NUnit.Framework;
namespace Orchard.Tests.Environment.AutofacUtil {
[TestFixture]
public class AutofacTests {
[TestFixture]
public class AutofacTests {
public interface IFoo { }
public class Foo1 : IFoo { }
public class Foo2 : IFoo { }
public class Foo3 : IFoo { }
[Test]
[Test(Description = "Exercises a problem in a previous version, to make sure older Autofac.dll isn't picked up")]
public void EnumerablesFromDifferentLifetimeScopesShouldReturnDifferentCollections() {
var rootBuilder = new ContainerBuilder();
rootBuilder.RegisterType<Foo1>().As<IFoo>();
@@ -35,5 +40,5 @@ public class AutofacTests {
Assert.That(arrayB, Has.Some.TypeOf<Foo1>());
Assert.That(arrayB, Has.Some.TypeOf<Foo3>());
}
}
}
}