ソースを見ずにお答えはするのは難しいですが、例えばすべてのテストの実行前・実行後に使用メモリ量を出力してみれば、どのあたりで増加しているかは目途がつくかもしれませんね。
NUnitであれば、assemblyに対してAction属性を付与してやることで、すべてのテスト前後に実行する処理を指定することができます。
↓こんなActionクラスを作っておいて
cs
1public class MemoryLoggingActionAttribute : Attribute, ITestAction
2{
3 public ActionTargets Targets
4 {
5 get
6 {
7 return ActionTargets.Test;
8 }
9 }
10
11 public void BeforeTest(ITest test)
12 {
13 Console.WriteLine("{0}開始前:{1}", test.Name, Environment.WorkingSet);
14 }
15
16 public void AfterTest(ITest test)
17 {
18 //少し待たないとメモリの使用量が反映されないかも
19 Thread.Sleep(1000);
20
21 Console.WriteLine("{0}実施後:{1}", test.Name, Environment.WorkingSet);
22 }
23}
↓こんなふうに、どこかでnamespaceに指定してやります
cs
1[assembly:MemoryLoggingAction]
2namespace SomeTestProject
3{
4 [TestFixture]
5 public class SomeTestClass
6 {
7 [Test]
8 public void SomeTest()
9 {
10 ...
11 }
12
13 ...
14 }
15}
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/07/10 00:04