問題描述
MbUnit.framework.dll 可並行化屬性 (MbUnit.framework.dll Parallelizable attribute)
the reference in my project was intially MbUnit.dll this was fine and allowed me to use [Parallelizable] attribute, but to use [ForEachTest()], [DataFixture()] and [XmlDataProvider()] i need to use MbUnit.Framework.dll instead, however adding this reference to the project seems to remove the ability to use the [Parallelizable] attribute.
is there a way around this to use the benefits of both?
Thanks
‑‑‑‑‑
參考解法
方法 1:
[Parallelizable] is an MbUnit v3 feature. It cannot be combined with MbUnit v2 features.
Instead of using [ForEachTest], [DataFixture], and [XmlDataProvider] from MbUnit v2, you should use the new data‑driven testing features of MbUnit v3.
More information here.
(by AdamWhite、Jeff Brown)