public void Get_message_with_attachments() { trash.Add(feedback); var result = feedback.AddAttachment().GetEnumerator(); result.MoveNext(); var randomFile = cleaner.RandomFile(); File.WriteAllText(randomFile, "123"); ((OpenFileResult)result.Current).Dialog.FileName = randomFile; result.MoveNext(); Assert.AreEqual(1, feedback.Attachments.Count); result = feedback.Send().GetEnumerator(); RunTask(result); Assert.IsNotNull(feedback.ArchiveName); var message = feedback.GetMessage(); Assert.IsNull(feedback.ArchiveName); Assert.IsNotNull(message); Assert.That(message.Attachments.Length, Is.GreaterThan(0)); }