public void MonitoringTotalAllocatedMemorySize() { Assert.Throws<InvalidOperationException>(() => { var t = AppDomain.CurrentDomain.MonitoringTotalAllocatedMemorySize; } ); }