I was implementing my first dotmemory unit test and found that if I specify a namespace that is a prefix of another it does not distinguish between the two. For example my targeted namespace is called "Foo" but my unit test namespace is called "FooUnitTest". If I try the code below the check always fails. If I change the target to "XFoo" it succeeds. Since I'm not specifying a wildcard in the Like should it not perform an exact match?
[DotMemoryUnit(CollectAllocations = true, FailIfRunWithoutSupport = false)]
public void ConnectionMemoryLeakUnitTest()
memoryCheckPoint = dotMemory.Check();
catch (DotMemoryUnitException ex)
var q = QueryBuilder.GetObjects(where => where.Namespace.Like("Foo"));
int x = memory.GetDifference(memoryCheckPoint)
Assert.IsTrue(x == 0);