Files
XMLParser/XMLParserTest/UnitTest1.cs
HuskyTeufel 34b2c92bb6 Code cleanup
2021-08-04 15:21:09 +02:00

22 lines
652 B
C#

using System.Diagnostics;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace XMLParserTest
{
[TestClass]
public class UnitTest1
{
[TestMethod]
public void TestMethod1()
{
XMLParser.XMLParser xml = new XMLParser.XMLParser("input.xml");
var d = xml.KanalObjekte.Select(x => x.Inspektionsdaten.OptischeInspektion.Inspektionsdatum).Distinct();
foreach(var s in d) {
var m = xml.KanalObjekte.FindAll(x => x.Inspektionsdaten.OptischeInspektion.Inspektionsdatum.Equals(s));
Debugger.Break();
}
}
}
}