如果我试图利用“试验 with -> Debugger <>/em>选项在“VS2010”内删除以下代码,则在_object.DoSomething(<>
上加上“。 标 标 /代码 错误 它成功地在尼乌特建造和通过。
<TestFixture()>
Public Class Tests
Private _object As SomeClass
<TestFixtureSetUp()>
Public Sub TestFixtureSetup()
_object = New SomeClass()
End Sub
<Test()>
Public Sub Test()
_object.DoSomething()
End Sub
End Class
看来,在I debug时,正在加速实施< 试验设计SetUp()>
。 为了工作,我修正了<代码>。 测试编码>
<Test()>
Public Sub Test()
If Debugger.IsAttached Then
TestFixtureSetup()
End If
_object.DoSomething()
End Sub
But should I need to do this or is this skipping of TestFixtureSetup
when debugging by design.