コード例 #1
0
        public void Consume_ShouldThrowNotSupportedException()
        {
            using (var packet = new BoolPacket())
            {
#pragma warning disable IDE0058
                Assert.Throws <NotSupportedException>(() => { packet.Consume(); });
#pragma warning restore IDE0058
            }
        }
コード例 #2
0
        public void Consume_ShouldThrowNotSupportedException()
        {
            var packet = new BoolPacket();

            Assert.Throws <NotSupportedException>(() => { packet.Consume(); });
        }