Permalink
Browse files

- added a test for IOC-327 but it doesn't reproduce the issue. Kernel…

….ReleaseComponent seems to be quite immune to null as it stands now.
  • Loading branch information...
1 parent 5c32e96 commit 8951c909f9fc39a4a04ad16b32c5a244ebc2d1a4 @kkozmic kkozmic committed Feb 15, 2012
Showing with 6 additions and 8 deletions.
  1. +6 −8 src/Castle.Windsor.Tests/MicroKernelTestCase.cs
@@ -12,31 +12,29 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-namespace Castle.MicroKernel.Tests
+namespace CastleTests
{
using System;
using System.Collections.Generic;
-
using Castle.Core;
+ using Castle.MicroKernel;
using Castle.MicroKernel.Handlers;
using Castle.MicroKernel.Registration;
using Castle.MicroKernel.Resolvers;
using Castle.MicroKernel.Tests.ClassComponents;
using Castle.Windsor.Proxy;
using Castle.Windsor.Tests.MicroKernel;
-
- using CastleTests;
using CastleTests.Components;
-
using NUnit.Framework;
[TestFixture]
public class MicroKernelTestCase : AbstractContainerTestCase
{
- [TearDown]
- public void Dispose()
+ [Test]
+ [Bug("IOC-327")]
+ public void ReleaseComponent_null_silently_ignored_doesnt_throw()
{
- Kernel.Dispose();
+ Assert.DoesNotThrow(() => Kernel.ReleaseComponent(null));
}
[Test]

0 comments on commit 8951c90

Please sign in to comment.