13 references to Refactoring
Microsoft.CodeAnalysis.VisualBasic.Features.UnitTests (13)
ConvertNumericLiteral\ConvertNumericLiteralTests.vb (13)
35Private Async Function TestFixOneAsync(initial As String, expected As String, refactoring As Refactoring) As Task
50Await TestFixOneAsync("&B1_0_01UL", "&B1001UL", Refactoring.AddOrRemoveDigitSeparators)
55Await TestFixOneAsync("5", "&B101", Refactoring.ChangeBase1)
60Await TestFixOneAsync("&B101", "5", Refactoring.ChangeBase1)
65Await TestFixOneAsync("10", "&HA", Refactoring.ChangeBase2)
70Await TestFixOneAsync("100000000", "100_000_000", Refactoring.AddOrRemoveDigitSeparators)
75Await TestFixOneAsync("&H1111abcd1111", "&H1111_abcd_1111", Refactoring.AddOrRemoveDigitSeparators)
80Await TestFixOneAsync("&B10101010", "&B1010_1010", Refactoring.AddOrRemoveDigitSeparators)
95Await TestFixOneAsync("&H1e5", "485", Refactoring.ChangeBase1)
100Await TestFixOneAsync("&H1e5UL", "&B111100101UL", Refactoring.ChangeBase2)
121End Class", index:=Refactoring.ChangeBase2)
132End Class", index:=Refactoring.ChangeBase1)
143End Class", index:=Refactoring.ChangeBase1)