public void SampleUniqueForOs() { // begin-snippet: unique_for_os using (ApprovalResults.UniqueForOs()) { Approvals.Verify("Data"); } // end-snippet }
public void TestAttachment() { using (ApprovalResults.UniqueForOs()) { var message = new MailMessage(); message.To.Add("*****@*****.**"); message.Subject = "this project rocks"; message.From = new MailAddress("*****@*****.**"); message.Body = @"Pictures Attached"; message.Attachments.Add(new Attachment(PathUtilities.GetAdjacentFile("tower.png"))); message.AlternateViews.Add(AlternateView.CreateAlternateViewFromString("This be alternate.")); EmailApprovals.Verify(message); } }
public void Testname() { using (ApprovalResults.UniqueForOs()) { var message = new MailMessage(); message.To.Add("*****@*****.**"); message.Subject = "this project rocks"; message.From = new MailAddress("*****@*****.**"); message.Body = @"Wow, this is so cool. I should send more emails. thanks, your biggest fan"; EmailApprovals.Verify(message); } }