Fix the build.
[castle.git] / Experiments / Castle.Igloo / Castle.Igloo.Test / BaseTest.cs
blobdcc16820be0407f9016c80998b1151092cb8991c
1 using Castle.Core.Resource;
2 using Castle.MicroKernel.SubSystems.Configuration;
3 using Castle.Windsor;
4 using Castle.Windsor.Configuration.Interpreters;
5 using NUnit.Framework;
8 namespace Castle.Igloo.Test
10 [TestFixture]
11 public abstract class BaseTest
13 protected WindsorContainer container = null;
15 #region SetUp & TearDown
17 /// <summary>
18 /// SetUp
19 /// </summary>
20 [TestFixtureSetUp]
21 public virtual void FixtureSetUp()
23 DefaultConfigurationStore store = new DefaultConfigurationStore();
24 XmlInterpreter interpreter = new XmlInterpreter(new ConfigResource());
25 interpreter.ProcessResource(interpreter.Source, store);
27 container = new WindsorContainer(interpreter);
30 /// <summary>
31 /// TearDown
32 /// </summary>
33 [TestFixtureTearDown]
34 public virtual void FixtureTearDown()
36 container.Dispose();
40 #endregion