Skip to content

Commit 12a289d

Browse files
committed
codefix +semver:none
1 parent e21ffe3 commit 12a289d

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

tests/HydraScript.Tests/Unit/IR/FunctionWithUndefinedReturnStorageTests.cs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,21 @@ namespace HydraScript.Tests.Unit.IR;
1111

1212
public class FunctionWithUndefinedReturnStorageTests
1313
{
14-
const string functionName = nameof(functionName);
14+
private const string FunctionName = nameof(FunctionName);
15+
1516
[Fact]
1617
public void StorageIsEmptyAfterFlushTest()
1718
{
1819
IFunctionWithUndefinedReturnStorage storage = new FunctionWithUndefinedReturnStorage();
1920

2021
var symbol = new FunctionSymbol(
21-
id: functionName,
22+
id: FunctionName,
2223
parameters: [],
2324
"undefined",
2425
isEmpty: false);
2526

2627
var decl = new FunctionDeclaration(
27-
name: new IdentifierReference(functionName),
28+
name: new IdentifierReference(FunctionName),
2829
returnTypeValue: Substitute.For<TypeValue>(),
2930
arguments: [],
3031
new BlockStatement([]));
@@ -41,30 +42,29 @@ public void StorageIsEmptyAfterFlushTest()
4142
public void StorageIsCorrectOrderTest()
4243
{
4344
FunctionDeclaration[] declarations = [
44-
new FunctionDeclaration(
45-
name: new IdentifierReference(functionName),
45+
new(
46+
name: new IdentifierReference(FunctionName),
4647
returnTypeValue: Substitute.For<TypeValue>(),
4748
arguments: [],
4849
new BlockStatement([])),
4950

50-
new FunctionDeclaration(
51-
name: new IdentifierReference(functionName),
51+
new(
52+
name: new IdentifierReference(FunctionName),
5253
returnTypeValue: Substitute.For<TypeValue>(),
5354
arguments: [],
5455
new BlockStatement([])),
5556

56-
new FunctionDeclaration(
57-
name: new IdentifierReference(functionName),
57+
new(
58+
name: new IdentifierReference(FunctionName),
5859
returnTypeValue: Substitute.For<TypeValue>(),
5960
arguments: [],
6061
new BlockStatement([])),
6162

62-
new FunctionDeclaration(
63-
name: new IdentifierReference(functionName),
63+
new(
64+
name: new IdentifierReference(FunctionName),
6465
returnTypeValue: Substitute.For<TypeValue>(),
6566
arguments: [],
66-
new BlockStatement([]))
67-
];
67+
new BlockStatement([]))];
6868

6969
IFunctionWithUndefinedReturnStorage storage = new FunctionWithUndefinedReturnStorage();
7070

0 commit comments

Comments
 (0)