public void IdPropertyShouldChangeUsageAfterUsage()
{
// First usage.
Guid id;
using (var pms = _memoryStreamPool.GetObject())
{
id = pms.Id;
id.ShouldNotBe(Guid.Empty);
}
// Second usage is different, pool uses a queue, not a stack.
using (var pms = _memoryStreamPool.GetObject())
{
pms.Id.ShouldNotBe(id);
}
}