diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2019-02-23 20:15:36 +0200 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2019-02-23 20:15:36 +0200 |
| commit | 17612c08da93c75d4c941a643bc7602c18f351d8 (patch) | |
| tree | 7fb879ef52d5460149b199f752279c3889cb5271 /Software/Visual_Studio/Tango.UnitTesting/Logging | |
| parent | d7c8a8e9a6320ade6098e0d8e182c7ada4e30a97 (diff) | |
| download | Tango-17612c08da93c75d4c941a643bc7602c18f351d8.tar.gz Tango-17612c08da93c75d4c941a643bc7602c18f351d8.zip | |
Implemented auto DTO generation.
Implemented mapping of DTO <=> Observables.
Organization of unit tests.
Removed DELETED from ADDRESS & CONTACT.
Diffstat (limited to 'Software/Visual_Studio/Tango.UnitTesting/Logging')
| -rw-r--r-- | Software/Visual_Studio/Tango.UnitTesting/Logging/Parsing_TST.cs | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.UnitTesting/Logging/Parsing_TST.cs b/Software/Visual_Studio/Tango.UnitTesting/Logging/Parsing_TST.cs new file mode 100644 index 000000000..57856f9cb --- /dev/null +++ b/Software/Visual_Studio/Tango.UnitTesting/Logging/Parsing_TST.cs @@ -0,0 +1,34 @@ +using Microsoft.VisualStudio.TestTools.UnitTesting; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.Integration.Logging; +using Tango.Logging; + +namespace Tango.UnitTesting.Logging +{ + [TestClass] + [TestCategory("Logging")] + public class Parsing_TST + { + [TestMethod] + public void Parse_Application_Logs() + { + ApplicationLogFileParser parser = new ApplicationLogFileParser(); + var logFiles = parser.GetLogFiles(); + var logFile = logFiles.OrderByDescending(x => x.DateTime).First(); + var logs = parser.Parse(logFile); + } + + [TestMethod] + public void Parse_Embedded_Logs() + { + EmbeddedLogFileParser parser = new EmbeddedLogFileParser(); + var logFiles = parser.GetLogFiles(); + var logFile = logFiles.OrderByDescending(x => x.DateTime).First(); + var logs = parser.Parse(logFile); + } + } +} |
