372 questions with Developer technologies | Visual Studio | Testing tags
Fallback fonts for Asian languages
Can anyone tell me how to determine the fallback fonts for Japanese, Korean, Traditional Chinese and Simplified Chinese in Windows 7? I found a link from 2005 that answers the question but it may be out-of-date
Developer technologies | Visual Studio | Testing
Writting Unit test for SQLDataReader
Below is the code which I want to write the unit test. If create the mock object for SqlDataReader - its throwing an error "Parent does not have a default constructor. The default constructor must be explicitly defined.'" Testclass also…
Developer technologies | Visual Studio | Testing
Developer technologies | C#
Under scenarion folder Instead of 'Test Name' displaying '.dll' in visual studio 2019
Open the loadtest -> the scenarios present in the load test will not list the name of the webtest – instead it just says the .dll file name.
Developer technologies | Visual Studio | Testing
Does it make sense to use an Azure Function to run integration tests?
Important disambiguation: Here I am NOT trying to test my Azure Function. Rather, I am investigating the possiblity of using an Azure Function to test my other code. I am developing an Azure web application in C#. I want to have really good coverage…
Azure Functions
Developer technologies | Visual Studio | Testing

run powershell on target machine task is over but it still continues to run. How shall i end it ?
I am trying to run a powershell script which triggers a python script for testing using selenium. Once my testing is ending and giving lastexitcode as 0, the powershell task on devops should also end but it still continues to connect to virtual machine.…
Developer technologies | Visual Studio | Testing
Find Test Cases associated with a Test Suite in Dev Ops
I ran a query to find all Test suites in our current sprint. When I click on a test suite, it doesn't take me to the list of test cases in that suite. Is there a way to click on a test suite from the query to find the test cases? I have a test suite…
Developer technologies | Visual Studio | Testing
Unable to generate any tests
Selecting code and choosing "Create Unit Tests" responds with the above error message in the status bar. Have written over a thousand unit tests over the past several years with no issue. All existing tests run. VS 2012 Premium Update 5, .Net…
Developer technologies | Visual Studio | Testing
Developer technologies | Visual Studio | Other
Does a unit text need a Main( )
Dear All, I am a C# beginner. I copy from YouTUBE (https://www.youtube.com/watch?v=HYrXogLj7vg), it shows an error "Program does not contain a static 'Main' method suitable for an entry point". My question is does a unit text need a…
Developer technologies | Visual Studio | Testing
Developer technologies | C#
What type of tests should I use for my CRUD RestAPI project?
Hi there! I'm working on simple and templated RestAPI project with SQL and Tests. Resently I've done my integration tests and I would like to also create a unit tests for this project. Is it right that I'll create a unit tests for a project with SQL, or…
Developer technologies | Visual Studio | Testing

Visual Studio 2022 ( Performance - Load Testing) - Business Central 365
Subject :- Visual Studio 2022 ( Performance - Load Testing) - Business Central 365 Hello , I would like to know which version of visual studio load test will be feasible for ERP Business Central 365 -> I have tried with the trial version…
Developer technologies | Visual Studio | Testing
Getting The unit test adapter failed to connect to the data source or to read the data erro while executing test cases using ADO Pipeline
I am using Test data from ADO test cases. While executing the Test cases suing ADO pipeline task. After every 6-7 days I am getting error - "The unit test adapter failed to connect to the data source or to read the data." For temporary…
Developer technologies | Visual Studio | Testing
Developer technologies | .NET | Other
Partial Code Coverage in Google test for ASSERT and EXPECT
I have the following sample piece of code in google test project: TEST(methodName, testcase) { EXPECT_EQ(1, 1); EXPECT_TRUE(true); } When I analyze code coverage in visual studio 2019 enterprise, I am getting partial code coverage …
Developer technologies | Visual Studio | Testing
Developer technologies | C++
How to close a dialog from a unit test in c#?
[TestMethod] /// <summary> /// Tests Whether the line no setup is /// opening or not from spec view /// </summary> /// <remarks> /// </remarks> public static void SetSizeSpecLineNumber() { bool actual =…
Developer technologies | Visual Studio | Testing
Developer technologies | C#
VSTO Globals Returns Null When Called Across Projects
I have a VSTO workbook which has been developed over the last few years, there is a lot of code in it. We are migrating this to a cloud based solution. I want to develop some automated testing to ensure the results from the cloud solution match…
Microsoft 365 and Office | Development | Other

Developer technologies | Visual Studio | Testing
Microsoft 365 and Office | Excel | For business | Windows

Developer technologies | Visual Basic for Applications
How to do xUnit testing of Asp.net Core WebApi with Interface class
I'm playing unit testing my api is developed with interface classes. they are developed through auto generated controllers by selecteting template of Api with EF. So is there any option to perform unit testing without interface class. Ive seen so many…
Developer technologies | ASP.NET | ASP.NET Core
Developer technologies | Visual Studio | Testing


GPU Usage performance tests run from the command line
Hi Team, I've been trying to run GPU Usage tests from a command line for a while now. So far I've been able to generate .diagsession files from agent configuration files by following the steps described in "Measure application performance from…
Developer technologies | Visual Studio | Testing
Factors affecting the size of pdb files
I want to know what factors are related to the size of the pdb file (source code size? header file size? dll file size?). Is there a related approximate formula or ratio? Or how to compress pdb file? Thanks in advance
Developer technologies | Visual Studio | Debugging
Developer technologies | Visual Studio | Testing
Community Center | Not monitored
(.Net Core) In MSTest unit test method, how to execute the Startup class so that the static property of a Service is initialized when calling Controller method?
Hi, I am using MSTest Framework in Unit Tests project (.NET Core 3.1) for testing Web API project (.NET Core 2.1). In the Web API project, in Startup class, a static property of a Service is initialized & then used in a Controller method. In…
Developer technologies | Visual Studio | Testing
Developer technologies | C#
VS2022 and Coded UI Maps - Cannot open UI Maps made in prior versions of VS
In VS2022, I cannot open UI maps that were made in my SLN in prior versions of VS. The maps were opening fine in VS2019, but when I try to open them in VS2022 (double-clicking them in the solution explorer), the following dialog appears: If I…
Developer technologies | Visual Studio | Testing
Linking an object file to a Test Project
I want to link an object file to a native test project (all C++ if that matters). This is well documented. See for example Use the Microsoft Unit Testing Framework for C++ in Visual Studio. Unfortunately I can't make it work. I always get a linker…
Developer technologies | Visual Studio | Testing
