コード例 #1
0
ファイル: MutationObserver.cs プロジェクト: zzc000/AngleSharp
 private static void AssertAll(IMutationRecord[] actualRecords, TestMutationRecord expected)
 {
     foreach (var actualRecord in actualRecords)
     {
         Assert.AreEqual(expected.Type, actualRecord.Type);
         Assert.AreEqual(expected.Target, actualRecord.Target);
     }
 }
コード例 #2
0
ファイル: MutationObserver.cs プロジェクト: zzc000/AngleSharp
 private static void AssertRecord(IMutationRecord actual, TestMutationRecord expected)
 {
     Assert.AreEqual(expected.AttributeName, actual.AttributeName);
     Assert.AreEqual(expected.AttributeNamespace, actual.AttributeNamespace);
     Assert.AreEqual(expected.NextSibling, actual.NextSibling);
     Assert.AreEqual(expected.PreviousSibling, actual.PreviousSibling);
     Assert.AreEqual(expected.PreviousValue, actual.PreviousValue);
     Assert.AreEqual(expected.Type, actual.Type);
     Assert.AreEqual(expected.Target, actual.Target);
 }
コード例 #3
0
 static void AssertRecord(IMutationRecord actual, TestMutationRecord expected)
 {
     Assert.AreEqual(expected.AttributeName, actual.AttributeName);
     Assert.AreEqual(expected.AttributeNamespace, actual.AttributeNamespace);
     Assert.AreEqual(expected.NextSibling, actual.NextSibling);
     Assert.AreEqual(expected.PreviousSibling, actual.PreviousSibling);
     Assert.AreEqual(expected.PreviousValue, actual.PreviousValue);
     Assert.AreEqual(expected.Type, actual.Type);
     Assert.AreEqual(expected.Target, actual.Target);
 }
コード例 #4
0
 static void AssertAll(IMutationRecord[] actualRecords, TestMutationRecord expected)
 {
     foreach (var actualRecord in actualRecords)
     {
         Assert.AreEqual(expected.Type, actualRecord.Type);
         Assert.AreEqual(expected.Target, actualRecord.Target);
     }
 }