Permalink
Fetching contributors…
Cannot retrieve contributors at this time
50 lines (42 sloc) 1.07 KB
// Copyright (c) Josef Pihrt. All rights reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.CodeRefactorings;
using Roslynator.Tests;
using Xunit;
namespace Roslynator.CSharp.Refactorings.Tests
{
public class RR0180InlineUsingStaticTests : AbstractCSharpCodeRefactoringVerifier
{
public override string RefactoringId { get; } = RefactoringIdentifiers.InlineUsingStatic;
[Fact, Trait(Traits.Refactoring, RefactoringIdentifiers.InlineUsingStatic)]
public async Task Test()
{
await VerifyRefactoringAsync(@"
using System.Linq;
using [||]static System.Linq.Enumerable;
class C
{
void M()
{
#region
Empty<object>();
#endregion
Empty<object>();
}
}
", @"
using System.Linq;
class C
{
void M()
{
#region
Enumerable.Empty<object>();
#endregion
Enumerable.Empty<object>();
}
}
", equivalenceKey: RefactoringId);
}
}
}