Hi All, I'm new to MBUnit and would really appreciate it if someone
could provide me with a bit of help. I can use rowtest in c# like:
[RowTest]
[Row(1000,10,100.0000)]
[Row(-1000,10,-100.0000)]
[Row(1000,7,142.85715)]
[Row(1000,0.00001,100000000)]
[Row(4195835,3145729,1.3338196)]
public void DivTest(double numerator, double denominator, double
result)
{
Assert.AreEqual(result, numerator / denominator, 0.00001 );
}
and it runs no problem, however I want to convert this to VB.NET, i
have tried numerous ways but cant get it.
<RowTest, Row(1000,10,100.0000)> public sub DivTest(byval numerator as
double, byval denominator as double, byval result as double)
{
Assert.AreEqual(result, numerator / denominator, 0.00001 );
}
complains about converting the numbers in the row() attribute to
objects and
<RowTest()> _
<Row(1000,10,100.0000)> _
public sub DivTest(byval numerator as double, byval denominator as
double, byval result as double)
{
Assert.AreEqual(result, numerator / denominator, 0.00001 );
}
complains about the line continuation, please could someone point out
where I'm being stupid, thanks.
Phil