зеркало из https://github.com/microsoft/testfx.git
use Guard.NotNull and remove redundant Debug.Assert (#3835)
This commit is contained in:
Родитель
a46fcbf46a
Коммит
49785958a3
|
@ -104,11 +104,7 @@ internal class XmlUtilities
|
|||
string fromVersion,
|
||||
string toVersion)
|
||||
{
|
||||
DebugEx.Assert(assemblyName != null, "assemblyName should not be null.");
|
||||
if (assemblyName == null)
|
||||
{
|
||||
throw new ArgumentNullException(nameof(assemblyName));
|
||||
}
|
||||
Guard.NotNull(assemblyName);
|
||||
|
||||
// Convert the public key token into a string.
|
||||
StringBuilder? publicKeyTokenString = null;
|
||||
|
|
Загрузка…
Ссылка в новой задаче