2 writes to _mainAllocationHandle
Microsoft.Build.Tasks.UnitTests (2)
MockUnmanagedMemoryHelper.cs (2)
92
_mainAllocationHandle
= mainAllocation;
102
_mainAllocationHandle
= IntPtr.Zero;
6 references to _mainAllocationHandle
Microsoft.Build.Tasks.UnitTests (6)
MockUnmanagedMemoryHelper.cs (6)
45
if (
_mainAllocationHandle
!= IntPtr.Zero)
47
if (!_dependentAllocations.ContainsKey(
_mainAllocationHandle
))
49
_dependentAllocations.Add(
_mainAllocationHandle
, new List<IntPtr>());
52
_dependentAllocations[
_mainAllocationHandle
].Add(handle);
90
Assert.Equal(IntPtr.Zero,
_mainAllocationHandle
);
100
Assert.NotEqual(IntPtr.Zero,
_mainAllocationHandle
);