public void Update_Contract_ThrowAssertionError()
        {
            _bridgeContext.TransactionContext.Transaction = new Transaction()
            {
                To = _smartContractAddressService.GetZeroSmartContractAddress()
            };

            Should.Throw <InvalidParameterException>(() =>
                                                     _bridgeContext.UpdateContract(_smartContractAddressService.GetZeroSmartContractAddress(),
                                                                                   new SmartContractRegistration()
            {
                Category = -1
            }, null));
        }
        public void Update_Contract_Success()
        {
            _bridgeContext.TransactionContext.Transaction = new Transaction()
            {
                To = _smartContractAddressService.GetZeroSmartContractAddress()
            };

            var registration = new SmartContractRegistration
            {
                Category = KernelConstants.DefaultRunnerCategory,
                Code     = ByteString.Empty,
                CodeHash = Hash.Empty
            };

            _bridgeContext.UpdateContract(SampleAddress.AddressList[0], registration, null);
        }