何となく、StopWatch クラスを使えば、
パフォーマンスもテスト
できるのではないかと思った。
以下がサンプルです。
Hoge target = new Hoge();
var stopWatch = new System.Diagnostics.Stopwatch();
target.HeavyProcessing(); // 重い処理
stopWatch.Stop();
Assert.IsTrue(stopWatch.ElapsedMilliseconds > 5000, "遅い!");
思いつきだけど、実は他に良い方法があるのかな?