diff --git a/Tests/MQTTnet.TestApp.NetCore/ManagedClientTest.cs b/Tests/MQTTnet.TestApp.NetCore/ManagedClientTest.cs index 60ce27d7..563f3430 100644 --- a/Tests/MQTTnet.TestApp.NetCore/ManagedClientTest.cs +++ b/Tests/MQTTnet.TestApp.NetCore/ManagedClientTest.cs @@ -61,13 +61,7 @@ namespace MQTTnet.TestApp.NetCore public class RandomPassword : IMqttClientCredentials { - public string Password - { - get - { - return Guid.NewGuid().ToString(); // The random password. - } - } + public string Password => Guid.NewGuid().ToString(); public string Username => "the_static_user"; }