Marcel T. : :gnome: :dotnet:
-
@mortoray @khalidabuhakmeh I think it is a bit confusing because T could either be a reference type or a value type. Value types having a completely different nullability mechanic which is not at all related to #nullable pragma. If you exclude structure types via : “ where T : class” the warning goes away, too and the class should behave as expected as it does not need to care for structs anymore.
-
@tomasekeli Why not?
It might not be industry standard so I wanted to give it for a try for a private project: It does the job and not in a bad way.
#mstest does not have the fixtures concept. It uses attributes to do initialization on test / class / assembly level which is convenient. You can even create your own attributes to influence how tests are executed.
So give it a try. I think it is underrated.