|
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)
--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~--- |
- MbUnit If you're stupid like me ... Phil Winstanley
- MbUnit Re: If you're stupid like me ... Andrew Stopford
