XsemmelTest/DifferTest.cs
/// <summary>
/// Vergleicht zwei identische XML-Dateien
/// </summary>
Vergleicht zwei identische XML-Dateien
Vergleicht zwei identische XML - Dateien
[TestMethod]
        [DeploymentItem(@"SampleFiles\Xml\diff-c1.xml")]
        [DeploymentItem(@"SampleFiles\Xml\diff-c2.xml")]
        public void DiffEqualCTest()
        {
            const string f_alt = @"diff-c1.xml";
            const string f_neu = @"diff-c2.xml";
            Knoten alt = Knoten.createOf(createDOM(XmlReader.Create(f_alt)));
            Knoten neu = Knoten.createOf(createDOM(XmlReader.Create(f_neu)));
            DiffEngine diff = new DiffEngine();
            Knoten res = diff.Diff(alt, neu);
            Assert.IsNull(res);
        }
[ TestMethod ] [ DeploymentItem ( @"SampleFiles\Xml\diff-c1.xml" ) ] [ DeploymentItem ( @"SampleFiles\Xml\diff-c2.xml" ) ] public void DiffEqualCTest ( ) { const string f_alt = @"diff-c1.xml" ; const string f_neu = @"diff-c2.xml" ; Knoten alt = Knoten . createOf ( createDOM ( XmlReader . Create ( f_alt ) ) ) ; Knoten neu = Knoten . createOf ( createDOM ( XmlReader . Create ( f_neu ) ) ) ; DiffEngine diff = new DiffEngine ( ) ; Knoten res = diff . Diff ( alt , neu ) ; Assert . IsNull ( res ) ; }
Vergleicht zwei identische XML-Dateien
Vergleicht zwei identische XML - Dateien