-
Hi there.
Often when working with PInvoke code, you have a function like this:
`public void DoSomething() {
MyApi.SomePInvokeCall();
SomeOtherCodeThatIsRelevant();
}`
But then you can't uni…
-
Given I have a method block of code:
```
private readonly string[] _requestHeaders = { "123", "345"};
public void Initialize(ITelemetry telemetry)
{
var requestTel…
-
Both the assertions below pass when .Execute is not virtual. This was confusing me for a while. I ended up swapping out NS for Moq and Moq reported an error informing me of the problem. It would be ni…
-
Hi,
I have a third-party class that calls a virtual method in its constructor.
When I tried to create a substitute for the class the virtual method returned the default value (or in the case below str…
-
Hello,
Is there any way to implicitly implement the methods of substituted interfaces?
For example the following test current fails. Is there any way to make it pass without duplicating the `Returns…
-
I'd like to add a way that I can reset the current SubstitutionContext so all my previous substitions are cleared out. Sometimes I will run into issues where a substitution lives on across many test …
-
We are experiencing the below exception from random tests when running parallelized NUnit (v3) tests, using NSubstitute 2.0.3:
System.Reflection.ReflectionTypeLoadException : Unable to load one or …
-
Hi,
It look like nsubstitute implements the interfaces explicitly.
Is there any possibility to create a substitute that is not implemented explicitly?
Here is my test code:
```
[TestFixture]
public…
imshz updated
7 years ago
-
Hey! I have a class that has a property whose type is `IReadOnlyDictionary`. If I try to get this via `AutoDataAttribute` (NUnit3), I get an error (see below)
I thought that v4 had fixed this... Am…
-
### Installed product versions
- Visual Studio: [example 2015 Professional]
- This extension: [example 1.1.21]
### Description
In general, I need use the template of NSubstitude as the default. …