public void Consume_ShouldThrowNotSupportedException() { using (var packet = new BoolPacket()) { #pragma warning disable IDE0058 Assert.Throws <NotSupportedException>(() => { packet.Consume(); }); #pragma warning restore IDE0058 } }
public void Consume_ShouldThrowNotSupportedException() { var packet = new BoolPacket(); Assert.Throws <NotSupportedException>(() => { packet.Consume(); }); }