Skip to content

Commit b969ddc

Browse files
committed
add test for disabled SCP
1 parent 12e00fb commit b969ddc

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

RubberduckTests/AutoComplete/SelfClosingPairHandlerTests.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,18 @@ private bool Run(SelfClosingPairTestInfo info)
2020
return false;
2121
}
2222

23+
[Test]
24+
public void GivenDisabledSelfClosingPairs_BailsOut()
25+
{
26+
var input = '"';
27+
var original = "DoSomething |".ToCodeString();
28+
var info = new SelfClosingPairTestInfo(original, input);
29+
info.Settings.SelfClosingPairs.IsEnabled = false;
30+
31+
Assert.IsFalse(Run(info));
32+
Assert.IsNull(info.Result);
33+
}
34+
2335
[Test]
2436
public void GivenInvalidInput_ResultIsNull()
2537
{

0 commit comments

Comments
 (0)