Exemplo n.º 1
0
        public void InstanceBlockShouldThrowOnHashcode()
        {
            Check.ThatCode(() =>
            {
                var blk = new InstanceBlock(typeof(string));

                blk.WithHashCode();
            })
            .Throws <NotSupportedException>().WithMessage("Cannot use hash code for generic instance description!");
        }
Exemplo n.º 2
0
        public void InstanceBlockShouldThrowOnhashcode()
        {
            Check.ThatCode(() =>
            {
                var blk = new InstanceBlock(typeof(string));

                blk.WithHashCode();
            })
            .Throws <NotSupportedException>();
        }
Exemplo n.º 3
0
        public void InstanceBlockShouldThrowOnhashcode()
        {
            Check.ThatCode(() =>
            {
                var blk = new InstanceBlock(typeof(string));

                blk.WithHashCode();
            })
            .Throws<NotSupportedException>();
        }
Exemplo n.º 4
0
        public void InstanceBlockShouldThrowOnhashcode()
        {
            var blk = new InstanceBlock(typeof(string));

            blk.WithHashCode();
        }