IntelliTect / IntelliTect/TestTools.TestFramework

Test (and possibly fix/add error messaging around) conflicting dependencies and multiple constructors

オープン
#94 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
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 はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。