Skip to main content
-1 votes
1 answer
91 views

EDIT As much as I would love to close this question, the suggested solution does not work for me. Believe me I tried. My test keeps spinning and nothing happens. I used suggested Push Frame method but ...
XAMlMAX's user avatar
  • 2,457
6 votes
0 answers
178 views

I have the following function, which is basically a wrapper around something that makes a SQL call and reshapes the results: public async IAsyncEnumerable<T> ExecuteTable<T>(string sql, ...
F. Polo's user avatar
  • 161
5 votes
1 answer
181 views

I am in the process of trying to upgrade to xunit.v3 from xunit. I have dropped the nuget packages for the xunit components as well as the visual studio runner and the MS test.sdk (as they are not ...
Civica LR's user avatar
1 vote
1 answer
592 views

Problem Description: I am working on a simple console application (Advent of Code) using .NET 10. I have set up an xUnit test project. The Issue: When I try to run tests in Visual Studio's Test ...
Emma's user avatar
  • 67
0 votes
1 answer
69 views

When I run my tests from the Solution Explorer (clicking "Run" from the tree), 13 tests from my test suite fail. This is 100% reproducible. When launching the same tests from the Test ...
mguijarr's user avatar
  • 8,078
0 votes
0 answers
141 views

I'm trying to add tests to my MAUI app. I added the xUnit test project to a separate namespace. The tests only run in the terminal with the dotnet test command. If I use the test explorer, it doesn't ...
magister's user avatar
1 vote
1 answer
162 views

I've been referencing a post here on Stack Overflow Is there a way to unit test top-level statements in C#? However, it hasn't helped. I'm trying to learn how to use xUnit testing in a C# console ...
Rod's user avatar
  • 4,631
5 votes
1 answer
335 views

I have a solution with many projects. When I run dotnet test, it selects all my xUnit projects and seems to correctly execute all of them. But at the last line of what dotnet test prints, the number ...
FluidMechanics Potential Flows's user avatar
3 votes
1 answer
99 views

The code to be tested is as follows: //pseudo code public class ConnectionManager: IConnectionManager ( ILogService _logService; IConnector _iConnector; public ConnectionManager(...
Nitin S's user avatar
  • 7,788
2 votes
2 answers
121 views

I am attempting to test a repository method using a moq with a setup in the test. As far as I can tell, this is not testing the method but only testing the test. Here is an abbreviated version of the ...
Jesse Liberty's user avatar
1 vote
1 answer
158 views

I have a console app constructed using the following code: public partial class Program { private static async Task<int> Main(string[] args) { Host.CreateDefaultBuilder(args) ...
khteh's user avatar
  • 4,370
1 vote
0 answers
86 views

I am building a card game using Godot 4.5, with C#. I am trying to unit test a Card object that inherits from Node2D, but when I attempt to run the test, I get the following exception: Exception has ...
tbric123's user avatar
1 vote
1 answer
118 views

I am working with ASP.NET/.NET 4.8 application. My action method is as follows: public class TestController: System.Web.Http.ApiController { // pseudo code public async Task<...
Nitin S's user avatar
  • 7,788
0 votes
0 answers
128 views

I am trying to use XUnit for testing my f# code. module UnitTest1 open Xunit open Program open System.Diagnostics [<Fact>] let Test1 () = Debugger.Break() Assert.True(true) The test ...
Andrey's user avatar
  • 6,659
2 votes
0 answers
76 views

I'm using .NET9.0. MRE: public class JTokenEqualityTests { [Fact] public void IntVsJToken_AssertEqual_ShouldFailButDoesnt() { int original = 42; JToken token = JToken....
FluidMechanics Potential Flows's user avatar

15 30 50 per page
1
2 3 4 5
223