public void Readによるn通目の読み込み(int n) { //setUp var max = 10; var threadSpan = 0; //最小経過時間 var mail = new Mail(); var expected = string.Format("{0}", n); mail.AddHeader("tag", expected); var mailInfo = CreateMailInfo(); for (int i = 0; i < max; i++) { sut.Save(mail, mailInfo); } var list = sut.GetList(max, threadSpan); //exerceise sut.Read(list[n].MailInfo.FileName, ref mail); var actual = mail.GetHeader("tag"); //verify Assert.That(actual, Is.EqualTo(expected)); }