Method parameters have incorrect values when using RowTest in VB.Net

Posted by simon_bellis on Stack Overflow See other posts from Stack Overflow or by simon_bellis
Published on 2010-04-06T14:23:00Z Indexed on 2010/04/27 18:33 UTC
Read the original article Hit count: 175

Filed under:
|
|
|

Hello,

I have the following test method (VB.NET)

<RowTest()> _
<Row(1, 2, 3)> _
Public Sub AddMultipleNumbers(ByVal number1 As Integer, ByVal number2 As Integer, ByVal result As Integer)

    Dim dvbc As VbClass = New VbClass()

    Dim actual As Integer = dvbc.Add(number1, number2)

    Assert.That(actual, [Is].SameAs(result))
End Sub

My problem is that when the test runs, using TestDriven.Net, the three method parameters are 0 and not the values I am expecting. I have referenced the NUnit.Framework (v.2.5.3.9345) anf the NUnitExtension.RowTest (v.1.2.3.0).

© Stack Overflow or respective owner

Related posts about vb.net

Related posts about unit-testing