Guys,
Just a quicky – I did something stupid with my tests and got a really odd error. I basically set up a method as both a [Test] and a [RowTest] at the same time.
[Test()]
[RowTest()]
[Row(1,1)]
public void AddVehicleTest(int CentreId, int VehicleId)
{
Assert.IsTrue(true);
}
Here's the exception I got: -
Test Execution
Exploring Manheim.RetailServices.DAT.UnitTests, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
MbUnit 1.0.2232.25376 Addin
Found 2 tests
Saved to Database
Saved to Database
[success] Database.AddVehicleTest(1,1)
[failure] Database.FailedLoading(Parameters count are not equal Equal assertion failed: [[0]]!=[[2]])
TestCase 'Database.FailedLoading(Parameters count are not equal Equal assertion failed: [[0]]!=[[2]])'
failed: A parent fixture failed
MbUnit.Core.Exceptions.FixtureFailedLoadingException
Message: A parent fixture failed
Source: MbUnit.Framework
StackTrace:
at MbUnit.Core.Invokers.FailedLoadingRunInvoker.Execute(Object o, IList args)
at MbUnit.Core.RunPipeStarter.Run(Object fixture)
Inner Exception
System.Exception
Message: Invalid method signature
Source: MbUnit.Framework
StackTrace:
at MbUnit.Core.Reflection.SignatureChecker.Check(MethodInfo method)
at MbUnit.Core.Runs.MethodRun.PopulateInvokerTree(RunInvokerTree tree, RunInvokerVertex parent, Type t)
Inner Exception
MbUnit.Core.Exceptions.NotEqualAssertionException
Message: Parameters count are not equal Equal assertion failed: [[0]]!=[[2]]
Source: MbUnit.Framework
StackTrace:
at MbUnit.Framework.Assert.FailNotEquals(Object expected, Object actual, String format, Object[] args)
at MbUnit.Framework.Assert.AreEqual(Int32 expected, Int32 actual, String message)
at MbUnit.Core.Reflection.SignatureChecker.Check(MethodInfo method)
------------------------------------------------------------------------
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they are
addressed.
If you have received this email in error please notify the originator of
the message. This footer also confirms that this email message has been
scanned for the presence of computer viruses, though it is not
guaranteed virus free.
Original Recipient: [email protected]
Original Sender : [EMAIL PROTECTED]
Original Send Date: 10/08/2006 - 13:37:29
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "MbUnit.User" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/MbUnitUser
-~----------~----~----~----~------~----~------~--~---
