aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.UnitTesting/Logging_TST.cs
blob: c4a697715c1287445d3b57b570c2e9ba6492b749 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.Transport.Web;

namespace Tango.MachineStudio.Common.Web
{
    public class UploadCompletedResponse : WebResponseMessage
    {

    }
}
{ [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); } } }