using UnitTestSharp; namespace Amphora.UnitTests { public class AllocationsTests : TestFixture { public class DuringTests : TestFixture { public void ObjectCreation_CountsAsAnAllocation() { CheckGreater(Allocations.During(() => Allocations.ObjectSink = new object()), 0L); } public void StructWork_CountsNothing() { CheckEqual(0L, Allocations.During(() => Allocations.StatusSink = default)); } } } }