22 lines
652 B
C#
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();
|
|
}
|
|
}
|
|
}
|
|
}
|