开发者

problem in nunit testcases

开发者 https://www.devze.com 2022-12-20 18:03 出处:网络
i m writing unit testcases for a class, I want to create a db file in setup mak开发者_如何学Ce the testcase to use it

i m writing unit testcases for a class,

I want to create a db file in setup mak开发者_如何学Ce the testcase to use it and delete the file in teardown

the problem is the time taken to copy is not predicted and sometimes the teardown cannot able to delete the file

help me please..

code in setup has File.Copy to copy the file

in teardown it has File.Delete to delete the file


What sort of DB are you creating? Can it not be created in memory?

0

精彩评论

暂无评论...
验证码 换一张
取 消