@@ -132,16 +132,15 @@ public void Create_should_return_no_auth_when_username_or_password_is_null()
132
132
s2 . Authentication . Should ( ) . Be ( Socks5AuthenticationSettings . None ) ;
133
133
}
134
134
135
- // Socks5AuthenticationSettings tests
136
135
[ Fact ]
137
- public void None_should_return_NoAuthenticationSettings_instance ( )
136
+ public void Socks5AuthenticationSettings_None_should_return_NoAuthenticationSettings_instance ( )
138
137
{
139
138
var none = Socks5AuthenticationSettings . None ;
140
139
none . Should ( ) . BeOfType < Socks5AuthenticationSettings . NoAuthenticationSettings > ( ) ;
141
140
}
142
141
143
142
[ Fact ]
144
- public void UsernamePassword_should_return_UsernamePasswordAuthenticationSettings_instance_with_correct_values ( )
143
+ public void Socks5AuthenticationSettings_UsernamePassword_should_return_UsernamePasswordAuthenticationSettings_instance_with_correct_values ( )
145
144
{
146
145
var up = Socks5AuthenticationSettings . UsernamePassword ( "user" , "pass" ) ;
147
146
up . Should ( ) . BeOfType < Socks5AuthenticationSettings . UsernamePasswordAuthenticationSettings > ( ) ;
@@ -155,22 +154,22 @@ public void UsernamePassword_should_return_UsernamePasswordAuthenticationSetting
155
154
[ InlineData ( "user" , null ) ]
156
155
[ InlineData ( "" , "pass" ) ]
157
156
[ InlineData ( "user" , "" ) ]
158
- public void UsernamePassword_should_throw_when_username_or_password_is_null_or_empty ( string username , string password )
157
+ public void Socks5AuthenticationSettings_UsernamePassword_should_throw_when_username_or_password_is_null_or_empty ( string username , string password )
159
158
{
160
159
var ex = Record . Exception ( ( ) => Socks5AuthenticationSettings . UsernamePassword ( username , password ) ) ;
161
160
ex . Should ( ) . BeAssignableTo < ArgumentException > ( ) ;
162
161
}
163
162
164
163
[ Fact ]
165
- public void NoAuthenticationSettings_Equals_should_return_true_for_any_Socks5AuthenticationSettings ( )
164
+ public void Socks5AuthenticationSettings_NoAuthenticationSettings_Equals_should_return_true_for_any_Socks5AuthenticationSettings ( )
166
165
{
167
166
var none = Socks5AuthenticationSettings . None ;
168
167
none . Equals ( Socks5AuthenticationSettings . None ) . Should ( ) . BeTrue ( ) ;
169
168
none . Equals ( Socks5AuthenticationSettings . UsernamePassword ( "a" , "b" ) ) . Should ( ) . BeFalse ( ) ;
170
169
}
171
170
172
171
[ Fact ]
173
- public void UsernamePasswordAuthenticationSettings_Equals_and_GetHashCode_should_work ( )
172
+ public void Socks5AuthenticationSettings_UsernamePasswordAuthenticationSettings_Equals_and_GetHashCode_should_work ( )
174
173
{
175
174
var a = Socks5AuthenticationSettings . UsernamePassword ( "u" , "p" ) ;
176
175
var b = Socks5AuthenticationSettings . UsernamePassword ( "u" , "p" ) ;
0 commit comments