public void TestInitialize() { ApplicationEngine ae = new ApplicationEngine(TriggerType.Application, null, null, 0); testNativeContract.Initialize(ae).Should().BeTrue(); ae = new ApplicationEngine(TriggerType.System, null, null, 0); Action action = () => testNativeContract.Initialize(ae); action.Should().Throw<InvalidOperationException>(); }
public void TestInitialize() { ApplicationEngine ae = ApplicationEngine.Create(TriggerType.Application, null, null, null, 0); testNativeContract.Initialize(ae); }
public void TestInitialize() { ApplicationEngine ae = ApplicationEngine.Create(TriggerType.Application, null, null, settings: TestBlockchain.TheNeoSystem.Settings, gas: 0); testNativeContract.Initialize(ae); }