On my machine the unit test project build fails since a few days but not every time. On the machine of my colleague it fails also sometimes but most o ...
On my machine the unit test project build fails since a few days but not every time. On the machine of my colleague it fails also sometimes but most o ...
As shown in the image, I want to fake extension method (seen in Specflow's ScenarioContext class) : public bool TryGetValue<TValue>(string key ...
. Answers to this question are eligible for a +50 reputation bounty. Ni ...
public static SPListItemCollection GetItemsReadyForPublish(SPWeb tempWeb) { SPList stagingLibrary = tempWeb.Lists["examplelibrary"]; SPQuery C ...
Here is the class I am trying to mock. Helper class that has a static method. Which takes in a dataTable. Tried using ShimsContext. Here is the sni ...
Simple Unit Test in xUnit and MSTests crashes with the message below: Microsoft.QualityTools.Testing.Fakes (v16.7.4-beta) dotnet core 3.1 Usin ...
I am writing a unit test case to shim xmldocument load method.when I debug the orginal project it not returning above xmldocument. am I not doing th ...
I have a unit test project that uses Fakes and building it fails but without generating any errors or warnings. The build output shows 0 Errors and 0 ...
I use msbuild to compile a csproj which contains a Fakes definitions: This definition produces a MSB3277 warning (conflicts between different versi ...
When trying to create ms-fakes assembly, I get this. Any ideas? ...
I have a .net framework project and a test project in my solution ,when i ran the test,the code coverage result showed reasonable.But we I use azurede ...
I have a solution, which contains numerous projects. Each of these projects has an associated test project which uses MSTest V2. Some of these test pr ...
I have a non-static class with a static method that I want to shim it. This static method is called from some part of the code I want to test (MyCl ...
I cannot compile a unit test project which uses Microsoft fakes. When attempting to do so I am presented with the following error. Severity Code D ...
I am facing highlighted issue while writing test cases with xUnit and Moq in .Net Core I have written below test case using MSTest Fakes .It is worki ...
I want to write unit test cases for a project which was built using .net core 2.1. Unit test project using .net framework 4.6.1. I am facing below i ...
In Visual Studio 2017, when I generate fakes for System assembly, no shims are generated for generic collection types like e.g. List or Dictionary. S ...
I'm writing unit tests using C# and Microsoft Fakes. The class I want to test subscribes to a sizable number of events defined in a service. The Servi ...
Summary I have opened a .NET461 solution in VisualStudio 2017 and 2019 and tried to compile it. The build is complaining that the ShimWindowsIdentity ...
Please note that I am unit testing VB.NET code using C#. I am trying to mock a interface call which has an implementation that calls a static function ...