Exemplo n.º 1
0
        public void TestGetScriptContainer()
        {
            IVerifiable     container = new TestVerifiable();
            UInt160         script_hash = new byte[] { 0x00 }.ToScriptHash();
            NotifyEventArgs args = new NotifyEventArgs(container, script_hash, "Test", null);

            args.ScriptContainer.Should().Be(container);
        }
Exemplo n.º 2
0
        public void TestGetScriptContainer()
        {
            IVerifiable     container = new TestVerifiable();
            UInt160         script_hash = new byte[] { 0x00 }.ToScriptHash();
            StackItem       state = new ContainerPlaceholder();
            NotifyEventArgs args  = new NotifyEventArgs(container, script_hash, state);

            args.ScriptContainer.Should().Be(container);
        }