我在加载testdata.xml到ndbunit时遇到了问题,我遵循了http://code.google.com/p/ndbunit/wiki/QuickStartGuide,但是当我在NUnit中运行我的单元测试时,测试数据没有加载。
有没有什么我没注意到的问题?
发布于 2011-03-22 00:33:05
我也有同样的问题。然后我注意到我的xml文件中没有名称空间,即
<?xml version="1.0" standalone="yes"?>
<NewDataSet>而不是
<?xml version="1.0" standalone="yes"?>
<NewDataSet
xmlns="http://tempuri.org/Database.xsd" >一旦我将名称空间放入其中,我的测试就再次变得令人满意。
https://stackoverflow.com/questions/959052
复制相似问题