Skip to content

Commit 0da87ae

Browse files
committed
Add IDE test
1 parent 9b39f05 commit 0da87ae

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

src/EditorFeatures/Test2/IntelliSense/CSharpCompletionCommandHandlerTests.vb

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13329,5 +13329,27 @@ public class C
1332913329
Await state.AssertSelectedCompletionItem(displayText:="TypeBuilder", isHardSelected:=True) ' hard-select TypeBuilder class
1333013330
End Using
1333113331
End Function
13332+
13333+
<WpfTheory, CombinatorialData>
13334+
<WorkItem("https://github.com/dotnet/roslyn/issues/81021")>
13335+
Public Async Function TestStartTypingInsideTargetTypedConditionalExpression(showCompletionInArgumentLists As Boolean) As Task
13336+
Using state = TestStateFactory.CreateCSharpTestState(
13337+
<Document><![CDATA[
13338+
using System;
13339+
13340+
class C
13341+
{
13342+
public DateTime M(bool b)
13343+
{
13344+
return b ? new($$) : default;
13345+
}
13346+
}
13347+
]]></Document>,
13348+
showCompletionInArgumentLists:=showCompletionInArgumentLists)
13349+
13350+
state.SendTypeChars("tick")
13351+
Await state.AssertSelectedCompletionItem("ticks:")
13352+
End Using
13353+
End Function
1333213354
End Class
1333313355
End Namespace

0 commit comments

Comments
 (0)