13 references to Refactoring
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (13)
ConvertNumericLiteral\ConvertNumericLiteralTests.cs (13)
31private async Task TestFixOneAsync(string initial, string expected, Refactoring refactoring)
39=> await TestFixOneAsync("0b1_0_01UL", "0b1001UL", Refactoring.AddOrRemoveDigitSeparators);
43=> await TestFixOneAsync("5", "0b101", Refactoring.ChangeBase1);
47=> await TestFixOneAsync("0b101", "5", Refactoring.ChangeBase1);
51=> await TestFixOneAsync("10", "0xA", Refactoring.ChangeBase2);
55=> await TestFixOneAsync("100000000", "100_000_000", Refactoring.AddOrRemoveDigitSeparators);
59=> await TestFixOneAsync("0x1111abcd1111", "0x1111_abcd_1111", Refactoring.AddOrRemoveDigitSeparators);
63=> await TestFixOneAsync("0b10101010", "0b1010_1010", Refactoring.AddOrRemoveDigitSeparators);
75=> await TestFixOneAsync("0x1e5", "485", Refactoring.ChangeBase1);
79=> await TestFixOneAsync("0x1e5UL", "0b111100101UL", Refactoring.ChangeBase2);
106""", index: (int)Refactoring.ChangeBase2);
124""", index: (int)Refactoring.ChangeBase1);
142""", index: (int)Refactoring.ChangeBase1);