IntelliTect / IntelliTect/TestTools.TestFramework
Test (and possibly fix/add error messaging around) conflicting dependencies and multiple constructors
オープン
- 主要言語
- C#
- スター
- 1
- フォーク
- 1
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Example:
Class 1 asks for:
```
public class SomeClass
{
public SomeClass(int someInt) { // do stuff }
public SomeClass(string someString) { // do stuff }
}
```
And the DI setup looks like:
```
TestBuilder
.AddDependencyInstance(10)
.AddDependencyInstance("hello!")
```
This appears to be a silent failure (real world use case used factory pattern AddDependencyService(Func<,>) which may matter.) This should throw a helpful error that you cannot do this.
Assess if this should be an error on .Build() instead of during a test run.
コントリビューションガイド
評価
この issue はまだ評価されていません。