예제 #1
0
    public static void Method_EncryptKey_Return_Byte()
    {
        string algorithm = "cryptographic";

        byte[]          keyData = new byte[] { 0x02, 0x01, 0x04, 0x03 };
        MockSecurityKey msk     = new MockSecurityKey();

        Assert.Equal(keyData, msk.EncryptKey(algorithm, keyData));
    }
예제 #2
0
    public static void Property_KeySize_Get()
    {
        MockSecurityKey msk = new MockSecurityKey();

        Assert.Equal(int.MaxValue, msk.KeySize);
    }