While loading assemblies from both x64/x86, I have got exception message as System.BadImageFormatException in my unit-test project. Below is the code ...
While loading assemblies from both x64/x86, I have got exception message as System.BadImageFormatException in my unit-test project. Below is the code ...
While instantiate a VSTO base class in my unit test project i have got Null Reference exception. Below is the code that i have used and snapshot of th ...
We had a test case which had earlier below snippet written but the test case was failing due to race condition. But when it changed to below it sta ...
I've got a project (say A.csproj) and a tests project (say T.csproj). T has coverlet.msbuild and Microsoft.NET.Test.Sdk as nuget references. T has a ...
I have a excel plug-in that is working very perfectly. What it does is it the user give some input from excel sheet and the plug-in backend gets the d ...
Getting the Blue exclamation point next to a unit test and it's not actually running. ...
I am new to c# and unit testing. I have a config file stored in Source folder(on Server). I need to read that file in my Unit test class. This will be ...
I have a test with multiple DataRow(s). When executing test, it only runs first test Any idea if I am missing anything? ...
I have a controller method like this : public class ValuesController : Controller { private readonly IService fService; public ValuesControll ...
I have a small demo project, with unit tests. using .net5, and 64 bit/any cpu. I am having trouble with them running in my azure pipeline. I have ma ...
Is there a way to configure Visual Studio native C++ unit testing framework to work with std::string instead of std::wstrings ? requires the functi ...
I started making tests where i check bytes but i noticed that I can't write byte in DataRow, because I get a message: System.ArgumentException: Object ...
I have been using the queued lock code from this answer, and wrote a unit test for it. For reference, the lock code: And my testing code: Using ...
I recently upgraded Visual Studio vom 2013 to 2019. Now I'm runnig VS Professional 2019, V16.7.4. I have loaded a Solution with 3 C#-projects and 3 c ...
I am writing Unit Tests for My Web API application ,created with .net Core. I use MSTest with MOQ for mocking. It has many layers as below. Controll ...
I am converting my azure pipeline to YAML pipeline. When I trigger the build, it gets failed on the Unit test step and gives the error as below [e ...
I'm writing some unit tests with MSTest, using C#, MSVS 2015 and .Net 4.6.1. This line: Fails with this compile error: CS0117 'Assert' does no ...
MSTest now allows you to test that a certain piece of code throws a certain exception type, through: However, I need a more flexible exception test ...
The build runs well but can not see the unit test result When added a build pipeline which used a classic edit or for my solution. And the code cover ...
I'm trying to automate UI's of an extension installed in Visual Studio 2019 Enterprise using WinAppDriver and after all the successful completion of c ...