1

我在将 testdata.xml 加载到 ndbunit 时遇到问题,我按照http://code.google.com/p/ndbunit/wiki/QuickStartGuide进行操作,但是在 NUnit 中运行单元测试时未加载测试数据。

有什么我不知道的问题吗?

4

1 回答 1

1

我有同样的问题。然后我注意到我的 xml 文件中没有命名空间,即

<?xml version="1.0" standalone="yes"?>

<NewDataSet>

代替

<?xml version="1.0" standalone="yes"?>
<NewDataSet 
        xmlns="http://tempuri.org/Database.xsd" >

一旦我把命名空间放进去,我的测试就又开心了。

于 2011-03-21T16:33:04.710 回答