Capturing Console Output in xUnit.v3
In xUnit v2 ITraceOutputHelper was needed (and injected) to make the console output inside your production code visible inside a test - in v3 it is easier: CaptureConsoleAttribute
Hey, I'm Steven a .NET Developer in Switzerland. I am a Microsoft MVP. Also, this blog is open source on GitHub.
In xUnit v2 ITraceOutputHelper was needed (and injected) to make the console output inside your production code visible inside a test - in v3 it is easier: CaptureConsoleAttribute
Many benchmarks that are using ArrayPool, or more specificly ArryPool<T>.Shared, are not actually measuring a "real" scenarion or the benchmark is flawed in some way. Let's examine a bit on what is going on.
You need some advice around Random? Sure there is something on LinkedIn for that. Let's have a look.
In this - somewhat technical and barely usable - blog post, we will have a look at inlining and structs in C#. And how they can optimize performance in some interesting ways.
This is a very small blog post on why you should use CancellationTokens in your API.
Another day, another dollar. LinkedIn has the tips for you! Performance, performance! Let's get right into it.
In Entity Framework Core ToDictionaryAsync (and of course) also the the synchronous counter part ToDictionary retrieve the whole object from the database.
For a lack of a better title, this blog post shows a database improvement that helped me quite a bit and what to do to make it work.
Did you ever wonder if there is a noticeable difference between:
List<int> a = [1, 2, 3];
// And
List<int> b = new() {1,2,3};
Let's find out:
The preview 6 of dotnet 10 brings two more functions: InfiniteSequence and Sequence.