-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathSA1109UnitTests.cs
More file actions
26 lines (23 loc) · 963 Bytes
/
Copy pathSA1109UnitTests.cs
File metadata and controls
26 lines (23 loc) · 963 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright (c) Contributors to the New StyleCop Analyzers project.
// Licensed under the MIT License. See LICENSE in the project root for license information.
#nullable disable
namespace StyleCop.Analyzers.Test.ReadabilityRules
{
using Microsoft.CodeAnalysis;
using StyleCop.Analyzers.ReadabilityRules;
using Xunit;
/// <summary>
/// This class contains unit tests for <see cref="SA1109BlockStatementsMustNotContainEmbeddedRegions"/>.
/// </summary>
public class SA1109UnitTests
{
[Fact]
public void TestDisabledByDefaultAndNotConfigurable()
{
var analyzer = new SA1109BlockStatementsMustNotContainEmbeddedRegions();
Assert.Single(analyzer.SupportedDiagnostics);
Assert.False(analyzer.SupportedDiagnostics[0].IsEnabledByDefault);
Assert.Contains(WellKnownDiagnosticTags.NotConfigurable, analyzer.SupportedDiagnostics[0].CustomTags);
}
}
}