コード例 #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
ファイル: UT_NotifyEventArgs.cs プロジェクト: snowypowers/neo
        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);
        }