@@ -21,7 +21,7 @@ public IgnoreChildrenElementComparerTest(DiffingTestFixture fixture) : base(fixt
2121 [ InlineData ( @"<p diff:ignoreChildren=""faLsE""></p>" ) ]
2222 public void Test001 ( string controlHtml )
2323 {
24- var comparison = ToComparison ( controlHtml , "<p><em></em>< /p>" ) ;
24+ var comparison = ToComparison ( controlHtml , "<p></p>" ) ;
2525
2626 IgnoreChildrenElementComparer . Compare ( comparison , CompareResult . Different ) . ShouldBe ( CompareResult . Different ) ;
2727 IgnoreChildrenElementComparer . Compare ( comparison , CompareResult . Same ) . ShouldBe ( CompareResult . Same ) ;
@@ -35,28 +35,10 @@ public void Test001(string controlHtml)
3535 [ InlineData ( @"<p diff:ignoreChildren=""TrUe""></p>" ) ]
3636 public void Test002 ( string controlHtml )
3737 {
38- var comparison = ToComparison ( controlHtml , "<p><em></em>< /p>" ) ;
38+ var comparison = ToComparison ( controlHtml , "<p></p>" ) ;
3939
4040 IgnoreChildrenElementComparer . Compare ( comparison , CompareResult . Same ) . ShouldBe ( CompareResult . Same | CompareResult . SkipChildren ) ;
4141 IgnoreChildrenElementComparer . Compare ( comparison , CompareResult . Different ) . ShouldBe ( CompareResult . Different | CompareResult . SkipChildren ) ;
4242 }
43-
44- [ Theory ( DisplayName = "When a control element has 'diff:ignoreChildren', calling Build() with DefaultOptions() returns empty diffs" ) ]
45- [ InlineData ( @"<p diff:ignoreChildren>hello <em>world</em></p>" ,
46- @"<p>world says <strong>hello</strong></p>" ) ]
47- [ InlineData ( @"<p diff:ignoreChildren>hello</p>" ,
48- @"<p>world says <strong>hello</strong></p>" ) ]
49- [ InlineData ( @"<p diff:ignoreChildren>hello <em>world</em></p>" ,
50- @"<p>world says</p>" ) ]
51- public void Test004 ( string control , string test )
52- {
53- var diffs = DiffBuilder
54- . Compare ( control )
55- . WithTest ( test )
56- . Build ( )
57- . ToList ( ) ;
58-
59- diffs . ShouldBeEmpty ( ) ;
60- }
6143 }
6244}
0 commit comments