aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.UnitTesting/Outlook_TST.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-04-23 19:56:48 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-04-23 19:56:48 +0300
commit8046598cb1439b66a8d6e556a61b715fc859a6b0 (patch)
tree5beaa8ca495f48ffbb40174b3569aab18debd6c1 /Software/Visual_Studio/Tango.UnitTesting/Outlook_TST.cs
parent680563266381a80a453ff93214812796fe519fec (diff)
downloadTango-8046598cb1439b66a8d6e556a61b715fc859a6b0.tar.gz
Tango-8046598cb1439b66a8d6e556a61b715fc859a6b0.zip
Implemented TeamFoundationClient components !!!
Diffstat (limited to 'Software/Visual_Studio/Tango.UnitTesting/Outlook_TST.cs')
-rw-r--r--Software/Visual_Studio/Tango.UnitTesting/Outlook_TST.cs35
1 files changed, 35 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.UnitTesting/Outlook_TST.cs b/Software/Visual_Studio/Tango.UnitTesting/Outlook_TST.cs
new file mode 100644
index 000000000..b34db8578
--- /dev/null
+++ b/Software/Visual_Studio/Tango.UnitTesting/Outlook_TST.cs
@@ -0,0 +1,35 @@
+using Microsoft.Office.Interop.Outlook;
+using Microsoft.VisualStudio.TestTools.UnitTesting;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using Outlook = Microsoft.Office.Interop.Outlook;
+
+namespace Tango.UnitTesting
+{
+ [TestClass]
+ [TestCategory("Outlook")]
+ public class Outlook_TST
+ {
+ [TestMethod]
+ public void Send_Email_With_Logs()
+ {
+ Application app = new Application();
+ MailItem email = (MailItem)app.CreateItem(OlItemType.olMailItem);
+ email.Subject = "Machine Studio Test";
+ email.To = "roy@twine-s.com";
+ email.Body = "Some body";
+
+ email.Attachments.Add(
+ "D:\\C#.txt",
+ OlAttachmentType.olByValue,
+ 1,
+ "CSharp Code");
+
+ email.Importance = OlImportance.olImportanceNormal;
+ email.Send();
+ }
+ }
+}