Пример #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);
        }
Пример #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);
        }