** Changed in: nunit-3.0 Status: Fix Committed => Fix Released -- Automatic Values For Theory Test Parameters Not Provided For bool And enum https://bugs.launchpad.net/bugs/504018 You received this bug notification because you are a member of NUnit Developers, which is subscribed to NUnit V2.
Status in NUnit Test Framework: Fix Released Status in NUnit V2 Test Framework: Fix Released Bug description: According to the documentation at http://www.nunit.org/index.php?p=datapoint&r=2.5.3 "Note: In the final release of NUnit 2.5, NUnit will automatically supply values of true and false for boolean arguments and will supply all possible values of any enum argument." I have not been able to get this to work at all in NUnit 2.5.3. Here is some simple code that it should work for: using System; using System.Collections.Generic; using System.Linq; using System.Text; using NUnit.Framework; namespace TheoryBoolBug { public enum MyEnum { Value1, Value2 } [TestFixture] public class Class1 { [Theory] public void BoolTest(bool b) { Assert.That(true, Is.True); } [Theory] public void EnumTest(MyEnum myEnum) { Assert.That(true, Is.True); } } } When I run that with the Gui runner it shows both tests as invalid saying "No arguments were provided". _______________________________________________ Mailing list: https://launchpad.net/~nunit-core Post to : nunit-core@lists.launchpad.net Unsubscribe : https://launchpad.net/~nunit-core More help : https://help.launchpad.net/ListHelp