IntelliTect / IntelliTect/TestTools.TestFramework

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

Đang mở
#94 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
C#
Star
1
Fork
1
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.