forked from LogExperts/LogExpert
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLogWindowTest.cs
32 lines (27 loc) · 1.35 KB
/
LogWindowTest.cs
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
using NUnit.Framework;
namespace LogExpert.Tests
{
//TODO Find out why there is a "Drag and Drop Exception" until then, this 2 Tests can not be executed the block the build pipeline
[TestFixture]
public class LogWindowTest
{
//// TODO: Add more tests when DI container is ready.
//[TestCase(@".\TestData\JsonColumnizerTest_01.txt", typeof(DefaultLogfileColumnizer))]
//public void Instantiate_JsonFile_BuildCorrectColumnizer(string fileName, Type columnizerType)
//{
// LogTabWindow logTabWindow = new(null, 0, false);
// LogWindow logWindow = new(logTabWindow, fileName, false, false);
// Assert.That(columnizerType, Is.EqualTo(logWindow.CurrentColumnizer.GetType()));
//}
//[TestCase(@".\TestData\XmlTest_01.xml")]
//[TestCase(@".\TestData\CsvTest_01.csv")]
//public void Instantiate_AnyFile_NotCrash(string fileName)
//{
// PluginRegistry.GetInstance().RegisteredColumnizers.Add(new Log4jXmlColumnizer());
// PluginRegistry.GetInstance().RegisteredColumnizers.Add(new CsvColumnizerType());
// LogTabWindow logTabWindow = new(null, 0, false);
// LogWindow logWindow = new(logTabWindow, fileName, false, false);
// Assert.That(true, Is.True);
//}
}
}