Skip to content

Commit a445e62

Browse files
committed
no repro
1 parent f2cca76 commit a445e62

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

IDisposableAnalyzers.Test/Helpers/DisposableTests.Ignores.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,8 +1093,8 @@ public void Dispose()
10931093
[TestCase(".Append(1)")]
10941094
[TestCase(".Append(true)")]
10951095
[TestCase(".Append((string?)null)")]
1096-
[TestCase(".Append(condition)")]
1097-
[TestCase(".Append(!condition, null)")]
1096+
[TestCase(".Append(condition, string.Empty)")]
1097+
[TestCase(".Append(!condition, string.Empty)")]
10981098
public static void Builder(string expression)
10991099
{
11001100
var syntaxTree = CSharpSyntaxTree.ParseText("""
@@ -1136,7 +1136,7 @@ public void Dispose() { }
11361136
11371137
public void M(bool condition)
11381138
{
1139-
using var s = new S().Append(true);
1139+
using var s = new S().Append(1, string.Empty).Append(true);
11401140
}
11411141
}
11421142
""".AssertReplace(".Append(true)", expression));

ValidCode/StructBuilder/Client.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public async Task<int> M(bool rth)
2222
.Append(2, "version")
2323
.Append(true, "subscribe")
2424
.Append(rth, "useRTH")
25-
.Append(!rth, "not")
25+
//.Append(!rth, "not")
2626
.Append("abc", "text")
2727
.Append((string?)null, "empty");
2828
await this.socket.SendAsync(request.LengthPrefixed(), SocketFlags.None, CancellationToken.None).ConfigureAwait(false);

0 commit comments

Comments
 (0)