jeudi 31 janvier 2019

Generate a dump file in case xunit assert happens in test dealing with random data

I am writing xunit fact test with random data and validating properties of my system.

If some assert happens, i want to generate a crash dump to inspect the situation of how system reached this point.

I could not find a way to do this. I found that it is possible to generate a crash dump of itself from managed process.

However, how can i hook in custom code in all Assert.True or similar Assert.XXX functions ?

Is there any alternate strategy for this ?

Aucun commentaire:

Enregistrer un commentaire