public void IsProcessにより処理対象かどうかを判断する(double threadSpan, bool expected) { //setUp var sut = new MailInfo(_dfFile); //exercise var actual = sut.IsProcess(threadSpan,_dfFile); //verify Assert.That(actual, Is.EqualTo(expected)); }
//sec:�Ō��GetList���Ă���sec���Ԍo�߂��Ȃ���͎̂擾�̑ΏۊO�Ƃ��� public List<OneQueue> GetList(int max, int sec) { var queueList = new List<OneQueue>(); lock (_lockObj) {//�r������ foreach (var fileName in Directory.GetFiles(Dir, "DF_*")) { if (queueList.Count == max) break; var mailInfo = new MailInfo(fileName); //�����Ώۂ��ǂ����̊m�F if (mailInfo.IsProcess(sec, fileName)) { var fname = Path.GetFileName(fileName); queueList.Add(new OneQueue(fname.Substring(3), mailInfo)); } } return queueList; } }