public static void Ping_SendAfterDispose_ThrowsSynchronously() { Ping p = new Ping(); p.Dispose(); Assert.Throws<ObjectDisposedException>(() => { p.SendPingAsync(TestSettings.LocalHost); }); }