Net Core 6: Microsoft Fakes and WPF Issue
Hello, I hope I posted in the correct forum... I'm in the progress of migrating our WPF from .Net 4.7.2 to .Net Core 6 I run into issues with our test projects that reference WPF and use Microsoft Fakes Please see my demo repo here: …
Query regarding App Centre Test Subscription
Does App Centre Test subscription ($99) includes build and distribute features as well ? Please clarify
Why Visual Studio 2022 Enterprise unit tests don't work in my new Windows 11 laptop?
Just creating an empty XUnit C# Unit test project fails miserably when trying to run or discover the tests with this error: Microsoft.TestPlatform.VsTestConsole.TranslationLayer.TransationLayerException: C:\Program Files\Microsoft Visual…
Can't figure out why Assert.AreEqual fails
I have a simple code that finds repeating words in a string(the use of StringBuilder is required). It may be not the most officiant one and certainly not the cleanest, but it does the bare minimum. using System.Text.RegularExpressions; …
MStest doesn't execute unit tests when OutputPath of the project changes
When I change the OutputPath for my unit test project the tests are still discoverable in Test Explorer, but when I try to run them (right-click -> Run) they don't run and I get the error below in Output window. Why it suddenly doesn't find that dll? …
I wanna open the freelauncher (from github) forms but i cant, how to fix it?
I wanna open the freelauncher (from github) forms. Exmp of error: in System.ComponentModel.TypeDescriptor.AddAttributes(Object instance, Attribute[] attributes) in Microsoft.VisualStudio.Design.VSDesignSurface.CreateDesigner(IComponent…
Can't figure out why my MSTest won't run
I have a simple program that uses List to store matrixes; this part is used to calculate a number of elements that are more then 3,15. It does what it needs to do but when it comes to testing i'm hit with endless loading with no errors showing. I'm…
Where can I find "Publish items"
Hello, I would like to ask why I do not see the option "Publish files" in the "Add project Output Group" selection. I am trying to make an application according to this video: …
Nunit not stop on break point
Hello everybody I'm going to try explain what it happen. I've one project on Net Core 6, its a library project. In this project I installed Nunit 3.13.3, NUnit3TestAdapter 4.2.1, Microsoft.NET.Test.Sdk 17.2.0, MSTest.TestAdapter…
Unit test: cannot delete a copied file
hi, I am writing an unit test to test a very simple application. The application is very simple. It only have two public APIs: OpenFile API: copy an existing binary file to a new created temp file and read it. CloseFile API: close both files…
VS 2022 Shims, Stubs, Fakes fail to build
Just upgraded from VS 2012 Pro to VS 2022 Enterprise. Previously functioning Shims, Stubs and Accessors all fail to be created. ("not declared/defined")
VSTS WebTest : Fetching Passwords from Azure Key Vault
Hi Experts, In our project we have been asked to not to use test data files (linked with webtests) to store login passwords, instead use Azure Key Vault to ensure enhanced protection of Azure AD passwords. Please let us know if anyone has come across…
Microsoft.CodeCoverage.Console.exe don't use my runsettings correctly with Google Test
Hello, I have a full C++ code that is tested with Google test. I generate a code coverage with VS 2022 with the Microsoft.CodeCoverage.Console.exe. The converage works well but I don't manage how to use the runsettings file to filter…
Handling of System.Text.Json
I'm currently using Visual Studio Professional 2015. I installed "System.Text.Json" and its accompanying "System.ValueTuple", "System.Threading.Tasks.Extensions", etc. with the NuGet package manager. System.Text.Json…
Azure Load Testing: adding the user.properties file doesn't work
Jmeter has a property file 'user.properties' in which properties can be set and loaded only when jmeter starts up, so not possible to set properties inside a jmx file. I need to add a property for adding extra customized columns in the csv logfile. …
SSIS Unit Tests
Hi, is there any ready-to-use framework or tool to allow doing unit testing for SSIS projects? I went through some sites where they talk about SSISTester (even a doc from MS dated 2013) but it seems that this tool is not maintained and is broken. I…
Migrating CodedUi to APPIUM
I am from Automation testing team. We subscribed Enterprise Edition for Visual Studio and used CodedUI for automation in our project. As CodedUI is reached its end of life, we are planning to migrate to Appium. Is there any alternative way to…
Inconsistent behavior of C# CompareTo()
I'm writing a sorting algorithm in C#. The algorithm is written in one project (call it the "Sort project"). I've built another project (call it the "Scratch project") to use as a baseline to compare the results of CompareTo(). I get…
Is there a service for either the Test Explorer or the Test Results?
Many aspects of Visual Studio can be accessed as a service from an extension (as seen here), however I was unable to determine if that was also true for the Test Explorer and/or the Test Results systems. Simply I wish to load test results from an…
vtest.console.exe does not find any C++ test in test project Visual Studio 2022 (did in 2019)
I have a solution of 52 projects mixed with C#, MFC and C++/CLI working with Visual Studio 2019. Recently I retargeted it to Visual Studio 2022 and moved all C++ projects to C++20. This solution has two test projects: one .NET only and a second one (the…