示例#1
0
        public OneMlCmd(MlCmdKind cmdKind, string paramStr, MlOneUser mlOneUser)
        {
            paramStr = paramStr.Trim();

            CmdKind   = cmdKind;
            ParamStr  = paramStr;
            MlOneUser = mlOneUser;
        }
示例#2
0
        public OneMlCmd(MlCmdKind cmdKind, string paramStr, MlOneUser mlOneUser)
        {
            paramStr = paramStr.Trim();

            CmdKind = cmdKind;
            ParamStr = paramStr;
            MlOneUser = mlOneUser;
        }
示例#3
0
        public void Test(string cmdStr, MlCmdKind mlCmdKind, string paramStr)
        {
            var mail = new Mail();
            mail.AppendLine(Encoding.ASCII.GetBytes("\r\n"));//区切り行(ヘッダ終了)
            mail.AppendLine(Encoding.ASCII.GetBytes(cmdStr));//区切り行(ヘッダ終了)
            var mlCmd = new MlCmd(null, mail, _user1);

            Assert.AreEqual(mlCmd.Cast<object>().Count(),1); // コマンド数は1

            foreach (OneMlCmd oneMlCmd in mlCmd) {
                Assert.AreEqual(oneMlCmd.CmdKind,mlCmdKind);
                Assert.AreEqual(oneMlCmd.ParamStr,paramStr);
                break;
            }
        }
示例#4
0
        public void Test(string cmdStr, MlCmdKind mlCmdKind, string paramStr)
        {
            var mail = new Mail();

            mail.AppendLine(Encoding.ASCII.GetBytes("\r\n")); //区切り行(ヘッダ終了)
            mail.AppendLine(Encoding.ASCII.GetBytes(cmdStr)); //区切り行(ヘッダ終了)
            var mlCmd = new MlCmd(null, mail, _user1);

            Assert.AreEqual(mlCmd.Cast <object>().Count(), 1); // コマンド数は1

            foreach (OneMlCmd oneMlCmd in mlCmd)
            {
                Assert.AreEqual(oneMlCmd.CmdKind, mlCmdKind);
                Assert.AreEqual(oneMlCmd.ParamStr, paramStr);
                break;
            }
        }