diff --git a/README.md b/README.md index 6596c3126..bdf710a03 100644 --- a/README.md +++ b/README.md @@ -63,5 +63,3 @@ The following conditional compilation symbols are defined for tests only under . * `FEATURE_CONSOLETRACELISTENER` - enables code that requires `System.Diagnostics.ConsoleTraceListener`. * `FEATURE_THREADABORT` - enables code that uses `Thread.Abort()`. * `FEATURE_WPF` - enables code that uses `PresentationCore.dll`. -* `NUNIT_SETCULTUREATTRIBUTE` - uses `NUnit.Framework.SetCultureAttribute`. -* `NUNIT_TIMEOUTATTRIBUTE` - uses `NUnit.Framework.TimeoutAttribute`. diff --git a/src/Castle.Windsor.Tests/Castle.Windsor.Tests.csproj b/src/Castle.Windsor.Tests/Castle.Windsor.Tests.csproj index 2bab0e782..ab1718d44 100644 --- a/src/Castle.Windsor.Tests/Castle.Windsor.Tests.csproj +++ b/src/Castle.Windsor.Tests/Castle.Windsor.Tests.csproj @@ -70,7 +70,7 @@ - $(DefineConstants);NUNIT_SETCULTUREATTRIBUTE;NUNIT_TIMEOUTATTRIBUTE;FEATURE_THREADABORT;FEATURE_WPF;FEATURE_CONSOLETRACELISTENER + $(DefineConstants);FEATURE_THREADABORT;FEATURE_WPF;FEATURE_CONSOLETRACELISTENER diff --git a/src/Castle.Windsor.Tests/DefaultConversionManagerTestCase.cs b/src/Castle.Windsor.Tests/DefaultConversionManagerTestCase.cs index 1d066bf37..dbe8b4976 100644 --- a/src/Castle.Windsor.Tests/DefaultConversionManagerTestCase.cs +++ b/src/Castle.Windsor.Tests/DefaultConversionManagerTestCase.cs @@ -1,4 +1,4 @@ -// Copyright 2004-2011 Castle Project - http://www.castleproject.org/ +// Copyright 2004-2022 Castle Project - http://www.castleproject.org/ // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -29,20 +29,17 @@ public class DefaultConversionManagerTestCase { private readonly DefaultConversionManager converter = new DefaultConversionManager(); -#if NUNIT_SETCULTUREATTRIBUTE - // currently not supported by SL [Test] [SetCulture("pl-PL")] [Bug("IOC-314")] - public void Converting_numbers_uses_oridinal_culture() + public void Converting_numbers_uses_ordinal_culture() { Assert.AreEqual(",", Thread.CurrentThread.CurrentCulture.NumberFormat.NumberDecimalSeparator); - var result = converter.PerformConversion("123.456"); + var result = converter.PerformConversion("123.456"); Assert.AreEqual(123.456m, result); } -#endif [Test] public void PerformConversionInt() diff --git a/src/Castle.Windsor.Tests/LazyLoadingTestCase.cs b/src/Castle.Windsor.Tests/LazyLoadingTestCase.cs index 4ee817036..d062b5c7a 100644 --- a/src/Castle.Windsor.Tests/LazyLoadingTestCase.cs +++ b/src/Castle.Windsor.Tests/LazyLoadingTestCase.cs @@ -1,4 +1,4 @@ -// Copyright 2004-2011 Castle Project - http://www.castleproject.org/ +// Copyright 2004-2022 Castle Project - http://www.castleproject.org/ // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -63,7 +63,6 @@ public void Component_loaded_lazily_can_have_lazy_dependencies() Container.Resolve(); } -#if NUNIT_TIMEOUTATTRIBUTE [Test] [Timeout(2000)] public void Loaders_are_thread_safe() @@ -98,7 +97,6 @@ public void Loaders_are_thread_safe() Assert.IsNull(exception); Assert.AreEqual(0, count[0]); } -#endif [Test] public void Loaders_only_triggered_when_resolving()