Skip to content

Commit 9e7bd7d

Browse files
committed
Reverted CodeAnalysis build to Release
1 parent de926dc commit 9e7bd7d

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

Rubberduck.CodeAnalysis/Rubberduck.CodeAnalysis.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<DebugSymbols>true</DebugSymbols>
1818
<DebugType>full</DebugType>
1919
<Optimize>false</Optimize>
20-
<OutputPath>bin\Debug\</OutputPath>
20+
<OutputPath>bin\Release\</OutputPath>
2121
<DefineConstants>DEBUG;TRACE</DefineConstants>
2222
<ErrorReport>prompt</ErrorReport>
2323
<WarningLevel>4</WarningLevel>

RubberduckTests/Inspections/UnreachableCase/UnreachableCaseInspectionTests.cs

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1499,6 +1499,42 @@ End Select
14991499
Assert.AreEqual(expectedMsg, actualMsg);
15001500
}
15011501

1502+
1503+
[Test]
1504+
[Category("Inspections")]
1505+
public void UnreachableCaseInspection_EnumerationDefaultsRespectsPriorValues3()
1506+
{
1507+
const string inputCode =
1508+
@"
1509+
private Enum TestEnumVals
1510+
Foo = -42
1511+
PostFoo
1512+
Bar = 9
1513+
PostBar
1514+
Baz = 0
1515+
PostBaz
1516+
End Enum
1517+
1518+
Sub Foo(z As TestEnumVals)
1519+
Select Case z
1520+
Case TestEnumVals.PostFoo
1521+
'OK
1522+
Case -41
1523+
'Unreachable
1524+
Case TestEnumVals.PostBar
1525+
'OK
1526+
Case 10
1527+
'Unreachable
1528+
Case TestEnumVals.PostBaz
1529+
'OK
1530+
Case 1
1531+
'Unreachable
1532+
End Select
1533+
End Sub";
1534+
(string expectedMsg, string actualMsg) = CheckActualResultsEqualsExpected(inputCode, unreachable: 3);
1535+
Assert.AreEqual(expectedMsg, actualMsg);
1536+
}
1537+
15021538
[Test]
15031539
[Category("Inspections")]
15041540
public void UnreachableCaseInspection_CaseElseByte()

0 commit comments

Comments
 (0)