@@ -46,43 +46,41 @@ public void OneTimeTearDown()
4646 public void WhenSetClipboardContentTypeIsPlainTextGetClipboardShouldReturnEncodedBase64String ( )
4747 {
4848 _driver . SetClipboard ( ClipboardContentType . PlainText , ClipboardTestString ) ;
49- Assert . That ( ( ) => Regex . IsMatch ( _driver . GetClipboard ( ClipboardContentType . PlainText ) , Base64RegexPattern , RegexOptions . Multiline ) ,
50- Is . True ) ;
49+ Assert . That ( Regex . IsMatch ( _driver . GetClipboard ( ClipboardContentType . PlainText ) , Base64RegexPattern , RegexOptions . Multiline ) , Is . True ) ;
5150 }
5251
5352 [ Test ]
5453 public void WhenClipboardContentTypeIsPlainTextWithLabelGetClipboardTextShouldReturnActualText ( )
5554 {
5655 _driver . SetClipboardText ( ClipboardTestString , label : "testing" ) ;
57- Assert . That ( ( ) => _driver . GetClipboardText ( ) , Does . Match ( ClipboardTestString ) ) ;
56+ Assert . That ( _driver . GetClipboardText ( ) , Does . Match ( ClipboardTestString ) ) ;
5857 }
5958
6059 [ Test ]
6160 public void WhenClipboardContentTypeIsPlainTextWithOutLabelGetClipboardTextShouldReturnActualText ( )
6261 {
6362 _driver . SetClipboardText ( ClipboardTestString , null ) ;
64- Assert . That ( ( ) => _driver . GetClipboardText ( ) , Does . Match ( ClipboardTestString ) ) ;
63+ Assert . That ( _driver . GetClipboardText ( ) , Does . Match ( ClipboardTestString ) ) ;
6564 }
6665
6766 [ Test ]
6867 public void WhenClipboardIsEmptyGetClipboardShouldReturnEmptyString ( )
6968 {
7069 _driver . SetClipboardText ( string . Empty , null ) ;
71- Assert . That ( ( ) => _driver . GetClipboard ( ClipboardContentType . PlainText ) , Is . Empty ) ;
70+ Assert . That ( _driver . GetClipboard ( ClipboardContentType . PlainText ) , Is . Empty ) ;
7271 }
7372
7473 [ Test ]
7574 public void WhenClipboardIsEmptyGetClipboardTextShouldReturnEmptyString ( )
7675 {
7776 _driver . SetClipboardText ( string . Empty , null ) ;
78- Assert . That ( ( ) => _driver . GetClipboardText ( ) , Is . Empty ) ;
77+ Assert . That ( _driver . GetClipboardText ( ) , Is . Empty ) ;
7978 }
8079
8180 [ Test ]
8281 public void WhenSetClipboardContentTypeIsImageSetClipboardShouldReturnNotImplementedException ( )
8382 {
84- Assert . That ( ( ) => _driver . SetClipboard ( ClipboardContentType . Image , ClipboardTestString ) ,
85- Throws . TypeOf < NotImplementedException > ( ) ) ;
83+ Assert . That ( ( System . Action ) ( ( ) => _driver . SetClipboard ( ClipboardContentType . Image , ClipboardTestString ) ) , Throws . TypeOf < NotImplementedException > ( ) ) ;
8684 }
8785
8886 [ Test ]
@@ -91,8 +89,7 @@ public void WhenSetClipboardContentTypeIsImageSetClipboardShouldReturnNotImpleme
9189#endif
9290 public void WhenGetClipboardImageGetClipboardShouldReturnNotImplementedException ( )
9391 {
94- Assert . That ( ( ) => _driver . GetClipboardImage ( ) ,
95- Throws . TypeOf < NotImplementedException > ( ) ) ;
92+ Assert . That ( ( System . Action ) ( ( ) => _driver . GetClipboardImage ( ) ) , Throws . TypeOf < NotImplementedException > ( ) ) ;
9693 }
9794
9895 [ Test ]
@@ -105,35 +102,31 @@ public void WhenSetClipboardImageSetClipboardShouldReturnNotImplementedException
105102 Image testImage = new Bitmap ( 100 , 100 ) ; // Create a sample image for testing
106103
107104 // Act & Assert
108- _ = Assert . Throws < NotImplementedException > ( ( ) => _driver . SetClipboardImage ( testImage ) ) ;
105+ _ = Assert . Throws < NotImplementedException > ( ( System . Action ) ( ( ) => _driver . SetClipboardImage ( testImage ) ) ) ;
109106 }
110107
111108 [ Test ]
112109 public void WhenGetClipboardUrlGetClipboardShouldReturnNotImplementedException ( )
113110 {
114- Assert . That ( ( ) => _driver . GetClipboardUrl ( ) ,
115- Throws . TypeOf < NotImplementedException > ( ) ) ;
111+ Assert . That ( ( System . Action ) ( ( ) => _driver . GetClipboardUrl ( ) ) , Throws . TypeOf < NotImplementedException > ( ) ) ;
116112 }
117113
118114 [ Test ]
119115 public void WhenSetClipboardContentTypeIsUrlSetClipboardShouldReturnNotImplementedException ( )
120116 {
121- Assert . That ( ( ) => _driver . SetClipboard ( ClipboardContentType . Url , string . Empty ) ,
122- Throws . TypeOf < NotImplementedException > ( ) ) ;
117+ Assert . That ( ( System . Action ) ( ( ) => _driver . SetClipboard ( ClipboardContentType . Url , string . Empty ) ) , Throws . TypeOf < NotImplementedException > ( ) ) ;
123118 }
124119
125120 [ Test ]
126121 public void WhenClipboardContentTypeIsUrlGetClipboardShouldReturnNotImplementedException ( )
127122 {
128- Assert . That ( ( ) => _driver . GetClipboard ( ClipboardContentType . Url ) ,
129- Throws . TypeOf < NotImplementedException > ( ) ) ;
123+ Assert . That ( ( System . Action ) ( ( ) => _driver . GetClipboard ( ClipboardContentType . Url ) ) , Throws . TypeOf < NotImplementedException > ( ) ) ;
130124 }
131125
132126 [ Test ]
133127 public void WhenClipboardContentTypeIsImageGetClipboardShouldReturnNotImplementedException ( )
134128 {
135- Assert . That ( ( ) => _driver . GetClipboard ( ClipboardContentType . Image ) ,
136- Throws . TypeOf < NotImplementedException > ( ) ) ;
129+ Assert . That ( ( System . Action ) ( ( ) => _driver . GetClipboard ( ClipboardContentType . Image ) ) , Throws . TypeOf < NotImplementedException > ( ) ) ;
137130 }
138131 }
139132}
0 commit comments