Fault injection for .NET apps?

前端 未结 4 880
青春惊慌失措
青春惊慌失措 2020-12-31 06:20

I am wondering if anyone knows of tools or techniques to automatically inject common faults into a running .NET program. Stuff like...

  • Randomly inject an OutO
4条回答
  •  悲哀的现实
    2020-12-31 06:38

    I don't know how one would "randomly" inject these things, but I would recommend you mock out the part that's not normally under your control, and have the mock throw an exception in some of your tests.

提交回复
热议问题