mercredi 23 septembre 2020

Assert.Equals fails when comparing the same type

I'm running into an issue where a test is failing when running but succeeds when breaking into the test.

Assert.Equals(typeof(Plugin.Plugin), plugin.GetType());

When running the test the guids are different. The typeof call returns a guid of all zeroes while the GetType has the expected guid. If I set a breakpoint to that line the guids match. Has anyone encountered this? They are both coming from the same assembly so they should both match. This is using .net 461

Thanks.

Aucun commentaire:

Enregistrer un commentaire