Пример #1
0
    public void CanCreateContractType()
    {
        var contract    = new Address(Generator.Integer(0, 100), Generator.Integer(0, 100), Generator.Integer(1000, 20000));
        var endorsement = new Endorsement(contract);

        Assert.Equal(KeyType.Contract, endorsement.Type);
        Assert.Empty(endorsement.List);
        Assert.Equal(0U, endorsement.RequiredCount);
        AssertHg.Empty(endorsement.PublicKey);
        Assert.Equal(contract, endorsement.Contract);
    }