Cleanup extra qualification. Cleanup redundant casting. Cleanup usings. Set var suggestion to none.

This commit is contained in:
Michael Yanni 2023-11-10 17:23:47 -08:00
parent 67cbc0dd65
commit c42fb4c641
46 changed files with 11 additions and 114 deletions

View file

@ -12,7 +12,7 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
public override CommandResult Execute(string args = "")
{
args = $"add {_projectName} reference {args}";
return base.ExecuteWithCapturedOutput(args);
return ExecuteWithCapturedOutput(args);
}
public AddReferenceCommand WithProject(string projectName)

View file

@ -1,9 +1,7 @@
// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using Microsoft.DotNet.Cli.Utils;
using System.Runtime.InteropServices;
namespace Microsoft.DotNet.Tools.Test.Utilities
{

View file

@ -1,9 +1,7 @@
// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using Microsoft.DotNet.Cli.Utils;
using System.Runtime.InteropServices;
namespace Microsoft.DotNet.Tools.Test.Utilities
{

View file

@ -1,8 +1,6 @@
// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using Microsoft.DotNet.Cli.Utils;
namespace Microsoft.DotNet.Tools.Test.Utilities
{
public class DotnetCommand : TestCommand

View file

@ -12,7 +12,7 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
public override CommandResult Execute(string args = "")
{
args = $"list {_path} package {args}";
return base.ExecuteWithCapturedOutput(args);
return ExecuteWithCapturedOutput(args);
}
public ListPackageCommand WithPath(string path)

View file

@ -12,7 +12,7 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
public override CommandResult Execute(string args = "")
{
args = $"list {_projectName} reference {args}";
return base.ExecuteWithCapturedOutput(args);
return ExecuteWithCapturedOutput(args);
}
public ListReferenceCommand WithProject(string projectName)

View file

@ -2,7 +2,6 @@
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using Microsoft.DotNet.Cli.Utils;
using Xunit;
namespace Microsoft.DotNet.Tools.Test.Utilities
{

View file

@ -1,7 +1,6 @@
// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using Microsoft.DotNet.Cli.Utils;
namespace Microsoft.DotNet.Tools.Test.Utilities

View file

@ -12,7 +12,7 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
public override CommandResult Execute(string args = "")
{
args = $"remove {_projectName} reference {args}";
return base.ExecuteWithCapturedOutput(args);
return ExecuteWithCapturedOutput(args);
}
public RemoveReferenceCommand WithProject(string projectName)

View file

@ -1,9 +1,7 @@
// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using Microsoft.DotNet.Cli.Utils;
using System.Runtime.InteropServices;
namespace Microsoft.DotNet.Tools.Test.Utilities
{

View file

@ -6,9 +6,6 @@ using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
using System.Threading;
using System.Threading.Tasks;
namespace Microsoft.DotNet.Tools.Test.Utilities