Good spot Jeff, I was talking nonsence.
Andy
On 8/12/06, Phil Winstanley <[EMAIL PROTECTED]> wrote:
Jeff,
That's what I actually did – took me a few seconds to work out what I'd done though! :-)
Phil.
On 11/8/06 20:32, "Jeff Brown" <[EMAIL PROTECTED]> wrote:
I don't understand why you want to move [Test] below [RowTest] or [Row]. You should just omit the [Test] attribute altogether. [RowTest] and [Row] can appear in any order without issue.
The exception occurred here because the code behind [Test] and [RowTest] both tried to process the same method. [RowTest] was fine with it, but [Test] failed because it expects methods to have 0 parameters. That explains the count mismatch exception below while initializing the exception.
Jeff.
From: [email protected] [ mailto:[EMAIL PROTECTED] On Behalf Of Andrew Stopford
Sent: Thursday, August 10, 2006 3:51 PM
To: [email protected]
Subject: MbUnit Re: If you're stupid like me ...
Hi Phil,
Never actually tried this but interesting that it should throw an exception, you know to move the [Test] attribute below the row attribute?
Long term need it's an idea to validate layouts so that errors are more meaningful when this sort of thing occurs.
Andy
On 8/10/06, Phil Winstanley < [EMAIL PROTECTED]> wrote:
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 <http://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
--------------------------
received to: andyb.com
Message ID : o5fd2880bff394729bfee57140b205c8e.pro
Sender ID : grbounce-V196-gUAAACO452ugq7lNsyscx84FVF5=phil= [EMAIL PROTECTED]
Msg Size : 15k
------------------------------------------------------------------------
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: 12/08/2006 - 11:37:21
--~--~---------~--~----~------------~-------~--~----~
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 Re: If you're stupid like me ... Jeff Brown
- MbUnit Re: If you're stupid like me ... Phil Winstanley
- MbUnit Re: If you're stupid like me ... Andrew Stopford
