11using  System . Threading . Tasks ; 
22using  PuppeteerSharp . PageAccessibility ; 
33using  PuppeteerSharp . Tests . Attributes ; 
4- using  PuppeteerSharp . Xunit ; 
5- using  Xunit ; 
6- using  Xunit . Abstractions ; 
4+ using  PuppeteerSharp . Nunit ; 
5+ using  NUnit . Framework ; 
76
87namespace  PuppeteerSharp . Tests . AccesibilityTests 
98{ 
10-     [ Collection ( TestConstants . TestFixtureCollectionName ) ] 
119    public  class  AccesibilityTests  :  PuppeteerPageBaseTest 
1210    { 
13-         public  AccesibilityTests ( ITestOutputHelper   output )   :  base ( output ) 
11+         public  AccesibilityTests ( ) :  base ( ) 
1412        { 
1513        } 
1614
1715        [ PuppeteerTest ( "accessibility.spec.ts" ,  "Accessibility" ,  "should work" ) ] 
18-         [ SkipBrowserFact ( skipFirefox :   true ) ] 
16+         [ Skip ( SkipAttribute . Targets . Firefox ) ] 
1917        public  async  Task  ShouldWork ( ) 
2018        { 
2119            await  Page . SetContentAsync ( @" 
@@ -114,17 +112,17 @@ await Page.SetContentAsync(@"
114112            } ; 
115113            await  Page . FocusAsync ( "[placeholder='Empty input']" ) ; 
116114            var  snapshot  =  await  Page . Accessibility . SnapshotAsync ( ) ; 
117-             Assert . Equal ( nodeToCheck ,  snapshot ) ; 
115+             Assert . AreEqual ( nodeToCheck ,  snapshot ) ; 
118116        } 
119117
120118        [ PuppeteerTest ( "accessibility.spec.ts" ,  "Accessibility" ,  "should report uninteresting nodes" ) ] 
121-         [ SkipBrowserFact ( skipFirefox :   true ) ] 
119+         [ Skip ( SkipAttribute . Targets . Firefox ) ] 
122120        public  async  Task  ShouldReportUninterestingNodes ( ) 
123121        { 
124122            await  Page . SetContentAsync ( "<textarea autofocus>hi</textarea>" ) ; 
125123            await  Page . FocusAsync ( "textarea" ) ; 
126124
127-             Assert . Equal ( 
125+             Assert . AreEqual ( 
128126                new  SerializedAXNode 
129127                { 
130128                    Role  =  "textbox" , 
@@ -156,7 +154,7 @@ public async Task ShouldReportUninterestingNodes()
156154        } 
157155
158156        [ PuppeteerTest ( "accessibility.spec.ts" ,  "Accessibility" ,  "roledescription" ) ] 
159-         [ SkipBrowserFact ( skipFirefox :   true ) ] 
157+         [ Skip ( SkipAttribute . Targets . Firefox ) ] 
160158        public  async  Task  RoleDescription ( ) 
161159        { 
162160            await  Page . SetContentAsync ( "<div tabIndex=-1 aria-roledescription='foo'>Hi</div>" ) ; 
@@ -166,25 +164,25 @@ public async Task RoleDescription()
166164        } 
167165
168166        [ PuppeteerTest ( "accessibility.spec.ts" ,  "Accessibility" ,  "orientation" ) ] 
169-         [ SkipBrowserFact ( skipFirefox :   true ) ] 
167+         [ Skip ( SkipAttribute . Targets . Firefox ) ] 
170168        public  async  Task  Orientation ( ) 
171169        { 
172170            await  Page . SetContentAsync ( "<a href='' role='slider' aria-orientation='vertical'>11</a>" ) ; 
173171            var  snapshot  =  await  Page . Accessibility . SnapshotAsync ( ) ; 
174-             Assert . Equal ( "vertical" ,  snapshot . Children [ 0 ] . Orientation ) ; 
172+             Assert . AreEqual ( "vertical" ,  snapshot . Children [ 0 ] . Orientation ) ; 
175173        } 
176174
177175        [ PuppeteerTest ( "accessibility.spec.ts" ,  "Accessibility" ,  "autocomplete" ) ] 
178-         [ SkipBrowserFact ( skipFirefox :   true ) ] 
176+         [ Skip ( SkipAttribute . Targets . Firefox ) ] 
179177        public  async  Task  AutoComplete ( ) 
180178        { 
181179            await  Page . SetContentAsync ( "<input type='number' aria-autocomplete='list' />" ) ; 
182180            var  snapshot  =  await  Page . Accessibility . SnapshotAsync ( ) ; 
183-             Assert . Equal ( "list" ,  snapshot . Children [ 0 ] . AutoComplete ) ; 
181+             Assert . AreEqual ( "list" ,  snapshot . Children [ 0 ] . AutoComplete ) ; 
184182        } 
185183
186184        [ PuppeteerTest ( "accessibility.spec.ts" ,  "Accessibility" ,  "multiselectable" ) ] 
187-         [ SkipBrowserFact ( skipFirefox :   true ) ] 
185+         [ Skip ( SkipAttribute . Targets . Firefox ) ] 
188186        public  async  Task  MultiSelectable ( ) 
189187        { 
190188            await  Page . SetContentAsync ( "<div role='grid' tabIndex=-1 aria-multiselectable=true>hey</div>" ) ; 
@@ -193,24 +191,24 @@ public async Task MultiSelectable()
193191        } 
194192
195193        [ PuppeteerTest ( "accessibility.spec.ts" ,  "Accessibility" ,  "keyshortcuts" ) ] 
196-         [ SkipBrowserFact ( skipFirefox :   true ) ] 
194+         [ Skip ( SkipAttribute . Targets . Firefox ) ] 
197195        public  async  Task  KeyShortcuts ( ) 
198196        { 
199197            await  Page . SetContentAsync ( "<div role='grid' tabIndex=-1 aria-keyshortcuts='foo'>hey</div>" ) ; 
200198            var  snapshot  =  await  Page . Accessibility . SnapshotAsync ( ) ; 
201-             Assert . Equal ( "foo" ,  snapshot . Children [ 0 ] . KeyShortcuts ) ; 
199+             Assert . AreEqual ( "foo" ,  snapshot . Children [ 0 ] . KeyShortcuts ) ; 
202200        } 
203201
204202        [ PuppeteerTest ( "accessibility.spec.ts" ,  "filtering children of leaf nodes" ,  "should not report text nodes inside controls" ) ] 
205-         [ SkipBrowserFact ( skipFirefox :   true ) ] 
203+         [ Skip ( SkipAttribute . Targets . Firefox ) ] 
206204        public  async  Task  ShouldNotReportTextNodesInsideControls ( ) 
207205        { 
208206            await  Page . SetContentAsync ( @" 
209207            <div role='tablist'> 
210208                <div role='tab' aria-selected='true'><b>Tab1</b></div> 
211209                <div role='tab'>Tab2</div> 
212210            </div>" ) ; 
213-             Assert . Equal ( 
211+             Assert . AreEqual ( 
214212                new  SerializedAXNode 
215213                { 
216214                    Role  =  "RootWebArea" , 
@@ -234,14 +232,14 @@ await Page.SetContentAsync(@"
234232        } 
235233
236234        [ PuppeteerTest ( "accessibility.spec.ts" ,  "filtering children of leaf nodes" ,  "rich text editable fields should have children" ) ] 
237-         [ SkipBrowserFact ( skipFirefox :   true ) ] 
235+         [ Skip ( SkipAttribute . Targets . Firefox ) ] 
238236        public  async  Task  RichTextEditableFieldsShouldHaveChildren ( ) 
239237        { 
240238            await  Page . SetContentAsync ( @" 
241239            <div contenteditable='true'> 
242240                Edit this image: <img src='fakeimage.png' alt='my fake image'> 
243241            </div>" ) ; 
244-             Assert . Equal ( 
242+             Assert . AreEqual ( 
245243                new  SerializedAXNode 
246244                { 
247245                    Role  =  "generic" , 
@@ -265,14 +263,14 @@ await Page.SetContentAsync(@"
265263        } 
266264
267265        [ PuppeteerTest ( "accessibility.spec.ts" ,  "filtering children of leaf nodes" ,  "rich text editable fields with role should have children" ) ] 
268-         [ SkipBrowserFact ( skipFirefox :   true ) ] 
266+         [ Skip ( SkipAttribute . Targets . Firefox ) ] 
269267        public  async  Task  RichTextEditableFieldsWithRoleShouldHaveChildren ( ) 
270268        { 
271269            await  Page . SetContentAsync ( @" 
272270            <div contenteditable='true' role='textbox'> 
273271                Edit this image: <img src='fakeimage.png' alt='my fake image'> 
274272            </div>" ) ; 
275-             Assert . Equal ( 
273+             Assert . AreEqual ( 
276274                new  SerializedAXNode 
277275                { 
278276                    Role  =  "textbox" , 
@@ -292,11 +290,11 @@ await Page.SetContentAsync(@"
292290        } 
293291
294292        [ PuppeteerTest ( "accessibility.spec.ts" ,  "plaintext contenteditable" ,  "plain text field with role should not have children" ) ] 
295-         [ SkipBrowserFact ( skipFirefox :   true ) ] 
293+         [ Skip ( SkipAttribute . Targets . Firefox ) ] 
296294        public  async  Task  PlainTextFieldWithRoleShouldNotHaveChildren ( ) 
297295        { 
298296            await  Page . SetContentAsync ( "<div contenteditable='plaintext-only' role='textbox'>Edit this image:<img src='fakeimage.png' alt='my fake image'></div>" ) ; 
299-             Assert . Equal ( 
297+             Assert . AreEqual ( 
300298                new  SerializedAXNode 
301299                { 
302300                    Role  =  "textbox" , 
@@ -308,26 +306,26 @@ public async Task PlainTextFieldWithRoleShouldNotHaveChildren()
308306        } 
309307
310308        [ PuppeteerTest ( "accessibility.spec.ts" ,  "plaintext contenteditable" ,  "plain text field with tabindex and without role should not have content" ) ] 
311-         [ SkipBrowserFact ( skipFirefox :   true ) ] 
309+         [ Skip ( SkipAttribute . Targets . Firefox ) ] 
312310        public  async  Task  PlainTextFieldWithoutRoleShouldNotHaveContent ( ) 
313311        { 
314312            await  Page . SetContentAsync ( 
315313                "<div contenteditable='plaintext-only'>Edit this image:<img src='fakeimage.png' alt='my fake image'></div>" ) ; 
316314            var  snapshot  =  await  Page . Accessibility . SnapshotAsync ( ) ; 
317-             Assert . Equal ( "generic" ,  snapshot . Children [ 0 ] . Role ) ; 
318-             Assert . Equal ( string . Empty ,  snapshot . Children [ 0 ] . Name ) ; 
315+             Assert . AreEqual ( "generic" ,  snapshot . Children [ 0 ] . Role ) ; 
316+             Assert . AreEqual ( string . Empty ,  snapshot . Children [ 0 ] . Name ) ; 
319317        } 
320318
321319        [ PuppeteerTest ( "accessibility.spec.ts" ,  "filtering children of leaf nodes" ,  "non editable textbox with role and tabIndex and label should not have children" ) ] 
322-         [ SkipBrowserFact ( skipFirefox :   true ) ] 
320+         [ Skip ( SkipAttribute . Targets . Firefox ) ] 
323321        public  async  Task  NonEditableTextboxWithRoleAndTabIndexAndLabelShouldNotHaveChildren ( ) 
324322        { 
325323            await  Page . SetContentAsync ( @" 
326324            <div role='textbox' tabIndex=0 aria-checked='true' aria-label='my favorite textbox'> 
327325                this is the inner content 
328326                <img alt='yo' src='fakeimg.png'> 
329327            </div>" ) ; 
330-             Assert . Equal ( 
328+             Assert . AreEqual ( 
331329                new  SerializedAXNode 
332330                { 
333331                    Role  =  "textbox" , 
@@ -338,15 +336,15 @@ this is the inner content
338336        } 
339337
340338        [ PuppeteerTest ( "accessibility.spec.ts" ,  "filtering children of leaf nodes" ,  "checkbox with and tabIndex and label should not have children" ) ] 
341-         [ SkipBrowserFact ( skipFirefox :   true ) ] 
339+         [ Skip ( SkipAttribute . Targets . Firefox ) ] 
342340        public  async  Task  CheckboxWithAndTabIndexAndLabelShouldNotHaveChildren ( ) 
343341        { 
344342            await  Page . SetContentAsync ( @" 
345343            <div role='checkbox' tabIndex=0 aria-checked='true' aria-label='my favorite checkbox'> 
346344                this is the inner content 
347345                <img alt='yo' src='fakeimg.png'> 
348346            </div>" ) ; 
349-             Assert . Equal ( 
347+             Assert . AreEqual ( 
350348                new  SerializedAXNode 
351349                { 
352350                    Role  =  "checkbox" , 
@@ -357,15 +355,15 @@ this is the inner content
357355        } 
358356
359357        [ PuppeteerTest ( "accessibility.spec.ts" ,  "filtering children of leaf nodes" ,  "checkbox without label should not have children" ) ] 
360-         [ SkipBrowserFact ( skipFirefox :   true ) ] 
358+         [ Skip ( SkipAttribute . Targets . Firefox ) ] 
361359        public  async  Task  CheckboxWithoutLabelShouldNotHaveChildren ( ) 
362360        { 
363361            await  Page . SetContentAsync ( @" 
364362            <div role='checkbox' aria-checked='true'> 
365363                this is the inner content 
366364                <img alt='yo' src='fakeimg.png'> 
367365            </div>" ) ; 
368-             Assert . Equal ( 
366+             Assert . AreEqual ( 
369367                new  SerializedAXNode 
370368                { 
371369                    Role  =  "checkbox" , 
0 commit comments