testproj/UnitTest1.cs [21:36]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - strs.Add(GenStr()); strs.Add(GenStr()); dotMemory.Check( memory => { var strCount = memory .GetDifference(memoryCheckPoint) .GetNewObjects() .GetObjects(i => i.Type == typeof(string)) .ObjectsCount; Assert.LessOrEqual(strCount, 2); }); strs.Clear(); - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - testproj/UnitTest1.cs [44:59]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - strs.Add(GenStr()); strs.Add(GenStr()); dotMemory.Check( memory => { var strCount = memory .GetDifference(memoryCheckPoint) .GetNewObjects() .GetObjects(i => i.Type == typeof(string)) .ObjectsCount; Assert.LessOrEqual(strCount, 2); }); strs.Clear(); - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -