作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我找不到任何关于使用/实现的文档 IXunitTestCollectionFactory
.
我有一些关于如何解决某些测试用例存在的自定义逻辑,从 xunit 源/示例中的翻找,这似乎是要走的路。
public class Foo : IXunitTestCollectionFactory
{
public Foo(ITestAssembly assembly, IMessageSink messageSink)
{
throw new NotImplementedException();
}
public ITestCollection Get(ITypeInfo testClass)
{
throw new NotImplementedException();
}
public string DisplayName
{
get { throw new NotImplementedException(); }
}
}
这似乎永远不会运行,或者至少异常被吞下,我放入的任何真实代码似乎也没有运行。
[assembly: CollectionBehavior("MyAssembly.Foo", "MyAssembly")]
我从哪里开始?是否有任何关于此的文档?
最佳答案
这个:
[assembly: CollectionBehavior("MyAssembly.Foo", "MyAssembly")]
[assembly: CollectionBehavior("MyNamespace.Foo", "MyAssembly")]
关于xunit - 如何实现 IXunitTestCollectionFactory,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29413249/
我找不到任何关于使用/实现的文档 IXunitTestCollectionFactory . 我有一些关于如何解决某些测试用例存在的自定义逻辑,从 xunit 源/示例中的翻找,这似乎是要走的路。 p
我是一名优秀的程序员,十分优秀!