示例#1
0
        public void TestGetBoolean()
        {
            ContainerPlaceholder containerPlaceholder = new ContainerPlaceholder();
            Action action = () => containerPlaceholder.ToBoolean();

            action.Should().Throw <NotSupportedException>();
        }
示例#2
0
        public void TestEquals()
        {
            ContainerPlaceholder containerPlaceholder = new ContainerPlaceholder();
            Action action = () => containerPlaceholder.Equals(new Integer(0));

            action.Should().Throw <NotSupportedException>();
        }
示例#3
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);
        }
示例#4
0
        public void TestGenerator()
        {
            ContainerPlaceholder containerPlaceholder = new ContainerPlaceholder();

            Assert.IsNotNull(containerPlaceholder);
        }
示例#5
0
        public void TestGenerator()
        {
            ContainerPlaceholder containerPlaceholder = new ContainerPlaceholder(StackItemType.Any, 0);

            Assert.IsNotNull(containerPlaceholder);
        }