示例#1
0
        public void valid(string message)
        {
            var dm = new DisplayMessage(message);

            Assert.Equal(message, dm.Value);
            Assert.Equal(message, dm.ToString());
        }
示例#2
0
    public override string ToString()
    {
        var  sb      = new StringBuilder("LoginResult(");
        bool __first = true;

        if (AuthToken != null && __isset.authToken)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("AuthToken: ");
            AuthToken.ToString(sb);
        }
        if (Certificate != null && __isset.certificate)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Certificate: ");
            Certificate.ToString(sb);
        }
        if (Verifier != null && __isset.verifier)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Verifier: ");
            Verifier.ToString(sb);
        }
        if (PinCode != null && __isset.pinCode)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("PinCode: ");
            PinCode.ToString(sb);
        }
        if (__isset.type)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Type: ");
            Type.ToString(sb);
        }
        if (__isset.lastPrimaryBindTime)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("LastPrimaryBindTime: ");
            LastPrimaryBindTime.ToString(sb);
        }
        if (DisplayMessage != null && __isset.displayMessage)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("DisplayMessage: ");
            DisplayMessage.ToString(sb);
        }
        if (SessionForSMSConfirm != null && __isset.sessionForSMSConfirm)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("SessionForSMSConfirm: ");
            SessionForSMSConfirm.ToString(sb);
        }
        sb.Append(")");
        return(sb.ToString());
    }