Valentin Breuß
Valentin Breuß
The method [`SynchronizedCollection.Add(T)`](https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.synchronizedcollection-1.add?view=net-8.0#system-collections-generic-synchronizedcollection-1-add(-0)) says in the description: "Adds an item to the thread-safe, **read-only** collection.", but the `SynchronizedCollection` is not read-only. Note: The [`Insert(Int32, T)`](https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.synchronizedcollection-1.insert?view=net-8.0#system-collections-generic-synchronizedcollection-1-insert(system-int32-0))-Method simply talks from a collection:...
I couldn't find anything in the [documentation](https://thomhurst.github.io/TUnit/docs/category/tutorial---assertions) with regards to the precedence between [AND](https://thomhurst.github.io/TUnit/docs/tutorial-assertions/and-conditions) and [OR](https://thomhurst.github.io/TUnit/docs/tutorial-assertions/or-conditions). Consider the following test: ```csharp [Test] public async Task And_Or_Precedence_Test() { char[] sut =...
I think it would be a great idea to incorporate dynamic skip, similar to https://github.com/xunit/xunit/issues/2073, by adding the following methods: ``` Assert.Skip(string reason); Assert.SkipIf(bool condition, string reason); ``` which will...
I often have the issue that I want to assert in a test, that an exception was only thrown when a certain condition applies. Currently I have to introduce an...
### Background and motivation I tried to compare that two `List` are equivalent, giving a tolerance. For a single value we have the `BeApproximately` overload, but for lists that does...
### Background and motivation I tried counting events in a collection of a specific type, but could not find a suitable method in FluentAssertions. My use case was an event...
### Description `Remove the 'FlagsAttribute' from this enum` is displayed, although the enum only uses power of two values. ### Repro steps Define the following enum: ```csharp [Flags] public enum...
This PR updates the Microsoft.NET.Test.Sdk package from version 17.14.0 to 18.0.1, addressing compatibility requirements for the newer SDK version by suppressing target framework support build errors in test projects. -...
**Describe the bug** In my GitHub Actions pipeline Stryker suddenly returns exit code 134. It previously worked with Stryker v4.7.0 (see [this build](https://github.com/aweXpect/Mockolate/actions/runs/18507304765)). I ran the same commit again today...