mastodon.xyz is one of the many independent Mastodon servers you can use to participate in the fediverse.
A Mastodon instance, open to everyone, but mainly English and French speaking.

Administered by:

Server stats:

743
active users

#unittest

1 post1 participant0 posts today

The amount of difficulty in making the @xunit assertion library work in Native AOT has me thinking about whether it needs a complete redesign for those types of projects.

Trying to shove 50 things into `Assert.Equal` and figure out what you meant at runtime is definitely not the right design for AOT. It's not necessarily a great design at all, but there's where it's been for 18 years.

Given that xUnit.net runs tests in random order by default, would changing the randomization order (in order to fix a bug) just be considered a bug fix or a breaking change?

Asking for a SemVer.

So made a source generator - ended up rather complex.
But I find unit testing it very tedious when verifying the generated output via Verify.

Is it not possible to load a class/instance as source in the testing, and use it as foundation for the generator. Instead of having to manually writing (and maintaining) the source as a string to then parse into a syntax tree to verify output? I mean it can generate on compile time, so why not at test? :D