@@ -27,18 +27,22 @@ class EmulationTest : BiDiTestFixture
2727    [ IgnoreBrowser ( Selenium . Browser . Firefox ,  "Not supported yet?" ) ] 
2828    public  void  CanSetTimezoneOverride ( ) 
2929    { 
30-         Assert . That ( 
31-             async  ( )  =>  await  bidi . Emulation . SetTimezoneOverrideAsync ( "UTC" ,  new ( )  {  Contexts  =  [ context ]  } ) , 
32-             Throws . Nothing ) ; 
30+         Assert . That ( async  ( )  => 
31+         { 
32+             await  bidi . Emulation . SetTimezoneOverrideAsync ( "UTC" ,  new ( )  {  Contexts  =  [ context ]  } ) ; 
33+         } , 
34+         Throws . Nothing ) ; 
3335    } 
3436
3537    [ Test ] 
3638    [ IgnoreBrowser ( Selenium . Browser . Firefox ,  "Not supported yet?" ) ] 
3739    public  void  CanSetTimezoneOverrideToDefault ( ) 
3840    { 
39-         Assert . That ( 
40-             async  ( )  =>  await  bidi . Emulation . SetTimezoneOverrideAsync ( null ,  new ( )  {  Contexts  =  [ context ]  } ) , 
41-             Throws . Nothing ) ; 
41+         Assert . That ( async  ( )  => 
42+         { 
43+             await  bidi . Emulation . SetTimezoneOverrideAsync ( null ,  new ( )  {  Contexts  =  [ context ]  } ) ; 
44+         } , 
45+         Throws . Nothing ) ; 
4246    } 
4347
4448    [ Test ] 
@@ -47,9 +51,11 @@ public void CanSetTimezoneOverrideToDefault()
4751    [ IgnoreBrowser ( Selenium . Browser . Firefox ,  "Not supported yet?" ) ] 
4852    public  void  CanSetUserAgentOverride ( ) 
4953    { 
50-         Assert . That ( 
51-             async  ( )  =>  await  bidi . Emulation . SetUserAgentOverrideAsync ( "MyUserAgent/1.0" ,  new ( )  {  Contexts  =  [ context ]  } ) , 
52-             Throws . Nothing ) ; 
54+         Assert . That ( async  ( )  => 
55+         { 
56+             await  bidi . Emulation . SetUserAgentOverrideAsync ( "MyUserAgent/1.0" ,  new ( )  {  Contexts  =  [ context ]  } ) ; 
57+         } , 
58+         Throws . Nothing ) ; 
5359    } 
5460
5561    [ Test ] 
@@ -58,25 +64,31 @@ public void CanSetUserAgentOverride()
5864    [ IgnoreBrowser ( Selenium . Browser . Firefox ,  "Not supported yet?" ) ] 
5965    public  void  CanSetUserAgentOverrideToDefault ( ) 
6066    { 
61-         Assert . That ( 
62-             async  ( )  =>  await  bidi . Emulation . SetUserAgentOverrideAsync ( null ,  new ( )  {  Contexts  =  [ context ]  } ) , 
63-             Throws . Nothing ) ; 
67+         Assert . That ( async  ( )  => 
68+         { 
69+             await  bidi . Emulation . SetUserAgentOverrideAsync ( null ,  new ( )  {  Contexts  =  [ context ]  } ) ; 
70+         } , 
71+         Throws . Nothing ) ; 
6472    } 
6573
6674    [ Test ] 
6775    public  void  CanSetLocaleOverride ( ) 
6876    { 
69-         Assert . That ( 
70-             async  ( )  =>  await  bidi . Emulation . SetLocaleOverrideAsync ( "en-US" ,  new ( )  {  Contexts  =  [ context ]  } ) , 
71-             Throws . Nothing ) ; 
77+         Assert . That ( async  ( )  => 
78+         { 
79+             await  bidi . Emulation . SetLocaleOverrideAsync ( "en-US" ,  new ( )  {  Contexts  =  [ context ]  } ) ; 
80+         } , 
81+         Throws . Nothing ) ; 
7282    } 
7383
7484    [ Test ] 
7585    public  void  CanSetLocaleOverrideToDefault ( ) 
7686    { 
77-         Assert . That ( 
78-             async  ( )  =>  await  bidi . Emulation . SetLocaleOverrideAsync ( null ,  new ( )  {  Contexts  =  [ context ]  } ) , 
79-             Throws . Nothing ) ; 
87+         Assert . That ( async  ( )  => 
88+         { 
89+             await  bidi . Emulation . SetLocaleOverrideAsync ( null ,  new ( )  {  Contexts  =  [ context ]  } ) ; 
90+         } , 
91+         Throws . Nothing ) ; 
8092    } 
8193
8294    [ Test ] 
@@ -85,9 +97,11 @@ public void CanSetLocaleOverrideToDefault()
8597    [ IgnoreBrowser ( Selenium . Browser . Firefox ,  "Not supported yet?" ) ] 
8698    public  void  CanSetForcedColorsModeThemeOverride ( ) 
8799    { 
88-         Assert . That ( 
89-             async  ( )  =>  await  bidi . Emulation . SetForcedColorsModeThemeOverrideAsync ( ForcedColorsModeTheme . Light ,  new ( )  {  Contexts  =  [ context ]  } ) , 
90-             Throws . Nothing ) ; 
100+         Assert . That ( async  ( )  => 
101+         { 
102+             await  bidi . Emulation . SetForcedColorsModeThemeOverrideAsync ( ForcedColorsModeTheme . Light ,  new ( )  {  Contexts  =  [ context ]  } ) ; 
103+         } , 
104+         Throws . Nothing ) ; 
91105    } 
92106
93107    [ Test ] 
@@ -96,29 +110,35 @@ public void CanSetForcedColorsModeThemeOverride()
96110    [ IgnoreBrowser ( Selenium . Browser . Firefox ,  "Not supported yet?" ) ] 
97111    public  void  CanSetForcedColorsModeThemeOverrideToDefault ( ) 
98112    { 
99-         Assert . That ( 
100-             async  ( )  =>  await  bidi . Emulation . SetForcedColorsModeThemeOverrideAsync ( null ,  new ( )  {  Contexts  =  [ context ]  } ) , 
101-             Throws . Nothing ) ; 
113+         Assert . That ( async  ( )  => 
114+         { 
115+             await  bidi . Emulation . SetForcedColorsModeThemeOverrideAsync ( null ,  new ( )  {  Contexts  =  [ context ]  } ) ; 
116+         } , 
117+         Throws . Nothing ) ; 
102118    } 
103119
104120    [ Test ] 
105121    [ IgnoreBrowser ( Selenium . Browser . Chrome ,  "Not supported yet?" ) ] 
106122    [ IgnoreBrowser ( Selenium . Browser . Firefox ,  "Not supported yet?" ) ] 
107123    public  void  CanSetScriptingEnabled ( ) 
108124    { 
109-         Assert . That ( 
110-             async  ( )  =>  await  bidi . Emulation . SetScriptingEnabledAsync ( false ,  new ( )  {  Contexts  =  [ context ]  } ) , 
111-             Throws . Nothing ) ; 
125+         Assert . That ( async  ( )  => 
126+         { 
127+             await  bidi . Emulation . SetScriptingEnabledAsync ( false ,  new ( )  {  Contexts  =  [ context ]  } ) ; 
128+         } , 
129+         Throws . Nothing ) ; 
112130    } 
113131
114132    [ Test ] 
115133    [ IgnoreBrowser ( Selenium . Browser . Chrome ,  "Not supported yet?" ) ] 
116134    [ IgnoreBrowser ( Selenium . Browser . Firefox ,  "Not supported yet?" ) ] 
117135    public  void  CanSetScriptingEnabledToDefault ( ) 
118136    { 
119-         Assert . That ( 
120-             async  ( )  =>  await  bidi . Emulation . SetScriptingEnabledAsync ( null ,  new ( )  {  Contexts  =  [ context ]  } ) , 
121-             Throws . Nothing ) ; 
137+         Assert . That ( async  ( )  => 
138+         { 
139+             await  bidi . Emulation . SetScriptingEnabledAsync ( null ,  new ( )  {  Contexts  =  [ context ]  } ) ; 
140+         } , 
141+         Throws . Nothing ) ; 
122142    } 
123143
124144    [ Test ] 
@@ -127,42 +147,52 @@ public void CanSetScreenOrientationOverride()
127147    { 
128148        var  orientation  =  new  ScreenOrientation ( ScreenOrientationNatural . Portrait ,  ScreenOrientationType . PortraitPrimary ) ; 
129149
130-         Assert . That ( 
131-             async  ( )  =>  await  bidi . Emulation . SetScreenOrientationOverrideAsync ( orientation ,  new ( )  {  Contexts  =  [ context ]  } ) , 
132-             Throws . Nothing ) ; 
150+         Assert . That ( async  ( )  => 
151+         { 
152+             await  bidi . Emulation . SetScreenOrientationOverrideAsync ( orientation ,  new ( )  {  Contexts  =  [ context ]  } ) ; 
153+         } , 
154+         Throws . Nothing ) ; 
133155    } 
134156
135157    [ Test ] 
136158    [ IgnoreBrowser ( Selenium . Browser . Firefox ,  "Not supported yet?" ) ] 
137159    public  void  CanSetScreenOrientationOverrideToDefault ( ) 
138160    { 
139-         Assert . That ( 
140-             async  ( )  =>  await  bidi . Emulation . SetScreenOrientationOverrideAsync ( null ,  new ( )  {  Contexts  =  [ context ]  } ) , 
141-             Throws . Nothing ) ; 
161+         Assert . That ( async  ( )  => 
162+         { 
163+             await  bidi . Emulation . SetScreenOrientationOverrideAsync ( null ,  new ( )  {  Contexts  =  [ context ]  } ) ; 
164+         } , 
165+         Throws . Nothing ) ; 
142166    } 
143167
144168    [ Test ] 
145169    public  void  CanSetGeolocationCoordinatesOverride ( ) 
146170    { 
147-         Assert . That ( 
148-             async  ( )  =>  await  bidi . Emulation . SetGeolocationCoordinatesOverrideAsync ( 0 ,  0 ,  new ( )  {  Contexts  =  [ context ]  } ) , 
149-             Throws . Nothing ) ; 
171+         Assert . That ( async  ( )  => 
172+         { 
173+             await  bidi . Emulation . SetGeolocationCoordinatesOverrideAsync ( 0 ,  0 ,  new ( )  {  Contexts  =  [ context ]  } ) ; 
174+         } , 
175+         Throws . Nothing ) ; 
150176    } 
151177
152178    [ Test ] 
153179    public  void  CanSetGeolocationCoordinatesOverrideToDefault ( ) 
154180    { 
155-         Assert . That ( 
156-             async  ( )  =>  await  bidi . Emulation . SetGeolocationCoordinatesOverrideAsync ( new ( )  {  Contexts  =  [ context ]  } ) , 
157-             Throws . Nothing ) ; 
181+         Assert . That ( async  ( )  => 
182+         { 
183+             await  bidi . Emulation . SetGeolocationCoordinatesOverrideAsync ( new ( )  {  Contexts  =  [ context ]  } ) ; 
184+         } , 
185+         Throws . Nothing ) ; 
158186    } 
159187
160188    [ Test ] 
161189    [ IgnoreBrowser ( Selenium . Browser . Firefox ,  "invalid argument: Expected \" coordinates\"  to be an object, got [object Undefined] undefined" ) ] 
162190    public  void  CanSetGeolocationPositionErrorOverride ( ) 
163191    { 
164-         Assert . That ( 
165-             async  ( )  =>  await  bidi . Emulation . SetGeolocationPositionErrorOverrideAsync ( new ( )  {  Contexts  =  [ context ]  } ) , 
166-             Throws . Nothing ) ; 
192+         Assert . That ( async  ( )  => 
193+         { 
194+             await  bidi . Emulation . SetGeolocationPositionErrorOverrideAsync ( new ( )  {  Contexts  =  [ context ]  } ) ; 
195+         } , 
196+         Throws . Nothing ) ; 
167197    } 
168198} 
0 commit comments