@@ -51,15 +51,17 @@ public void Authenticate_RegisteredUserAuthentication(string username, string pa
51
51
} ;
52
52
usernameAndPassword . Authenticate ( null , out ReadOnlySpan < byte > outgoingPacket ) ;
53
53
usernameAndPassword . IsClient = false ;
54
- usernameAndPassword . Authenticate ( outgoingPacket , out ReadOnlySpan < byte > responsePacket ) ;
54
+
55
+ usernameAndPassword . Authenticate ( outgoingPacket , out _ ) ;
55
56
}
56
57
57
58
[ Theory ]
58
59
[ UsernameAndPasswordRandomUsernameAndPasswords ( 1 ) ]
59
60
public void Authenticate_NotRegisteredUserAuthentication ( string username , string password )
60
61
{
61
- UsernameAndPassword usernameAndPassword = new ( ) {
62
- Database = new Dictionary < string , string > ( ) ,
62
+ UsernameAndPassword usernameAndPassword = new ( )
63
+ {
64
+ Database = [ ] ,
63
65
Username = username ,
64
66
Password = password
65
67
} ;
@@ -71,7 +73,7 @@ public void Authenticate_NotRegisteredUserAuthentication(string username, string
71
73
}
72
74
73
75
[ Theory ]
74
- [ InlineData ( "RegisteredUser" , "WrongPassword" ) ]
76
+ [ InlineData ( "RegisteredUser" , "WrongPassword" ) ]
75
77
public void Authenticate_RegisteredUserWrongPasswordAuthentication ( string username , string password )
76
78
{
77
79
UsernameAndPassword usernameAndPassword = new ( )
@@ -106,9 +108,9 @@ public void Authenticate_RightResponsePacket(string username, string password)
106
108
usernameAndPassword . Authenticate ( null , out ReadOnlySpan < byte > outgoingPacket ) ;
107
109
usernameAndPassword . IsClient = false ;
108
110
usernameAndPassword . Authenticate ( outgoingPacket , out ReadOnlySpan < byte > responsePacket ) ;
109
-
111
+
110
112
byte [ ] responsePacketBytes = responsePacket . ToArray ( ) ;
111
- Assert . Equal ( usernameAndPasswordResponseBytes , responsePacketBytes ) ;
113
+ Assert . Equal ( usernameAndPasswordResponseBytes , responsePacketBytes ) ;
112
114
}
113
115
114
116
[ Theory ]
0 commit comments