Skip to content

Commit a1bb6d3

Browse files
committed
Small correction
1 parent 26fa95b commit a1bb6d3

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

tests/MongoDB.Driver.Tests/Core/Connections/Socks5ProxySettingsTest.cs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,16 +132,15 @@ public void Create_should_return_no_auth_when_username_or_password_is_null()
132132
s2.Authentication.Should().Be(Socks5AuthenticationSettings.None);
133133
}
134134

135-
// Socks5AuthenticationSettings tests
136135
[Fact]
137-
public void None_should_return_NoAuthenticationSettings_instance()
136+
public void Socks5AuthenticationSettings_None_should_return_NoAuthenticationSettings_instance()
138137
{
139138
var none = Socks5AuthenticationSettings.None;
140139
none.Should().BeOfType<Socks5AuthenticationSettings.NoAuthenticationSettings>();
141140
}
142141

143142
[Fact]
144-
public void UsernamePassword_should_return_UsernamePasswordAuthenticationSettings_instance_with_correct_values()
143+
public void Socks5AuthenticationSettings_UsernamePassword_should_return_UsernamePasswordAuthenticationSettings_instance_with_correct_values()
145144
{
146145
var up = Socks5AuthenticationSettings.UsernamePassword("user", "pass");
147146
up.Should().BeOfType<Socks5AuthenticationSettings.UsernamePasswordAuthenticationSettings>();
@@ -155,22 +154,22 @@ public void UsernamePassword_should_return_UsernamePasswordAuthenticationSetting
155154
[InlineData("user", null)]
156155
[InlineData("", "pass")]
157156
[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)
159158
{
160159
var ex = Record.Exception(() => Socks5AuthenticationSettings.UsernamePassword(username, password));
161160
ex.Should().BeAssignableTo<ArgumentException>();
162161
}
163162

164163
[Fact]
165-
public void NoAuthenticationSettings_Equals_should_return_true_for_any_Socks5AuthenticationSettings()
164+
public void Socks5AuthenticationSettings_NoAuthenticationSettings_Equals_should_return_true_for_any_Socks5AuthenticationSettings()
166165
{
167166
var none = Socks5AuthenticationSettings.None;
168167
none.Equals(Socks5AuthenticationSettings.None).Should().BeTrue();
169168
none.Equals(Socks5AuthenticationSettings.UsernamePassword("a", "b")).Should().BeFalse();
170169
}
171170

172171
[Fact]
173-
public void UsernamePasswordAuthenticationSettings_Equals_and_GetHashCode_should_work()
172+
public void Socks5AuthenticationSettings_UsernamePasswordAuthenticationSettings_Equals_and_GetHashCode_should_work()
174173
{
175174
var a = Socks5AuthenticationSettings.UsernamePassword("u", "p");
176175
var b = Socks5AuthenticationSettings.UsernamePassword("u", "p");

0 commit comments

Comments
 (0)