Example #1
0
 public void SampleUniqueForOs()
 {
     // begin-snippet: unique_for_os
     using (ApprovalResults.UniqueForOs())
     {
         Approvals.Verify("Data");
     }
     // end-snippet
 }
Example #2
0
 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);
     }
 }
Example #3
0
        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);
            }
        }