Skip to content

Commit

Permalink
Fix misnamed variables
Browse files Browse the repository at this point in the history
  • Loading branch information
simpat-adam committed Jul 23, 2024
1 parent 7f50a1c commit d4677db
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public class Given_A_Sample_ApiSchema() : DependencyCalculatorTests
}
""";

private readonly string _expectedDescriptor =
private readonly string _expectedDependencies =
"""
[
{
Expand Down Expand Up @@ -70,7 +70,7 @@ public void It_should_calculate_dependencies()
dependencies.Should().NotBeEmpty();
dependencies.Count.Should().Be(1);

var expectedDependencies = JsonNode.Parse(_expectedDescriptor)!.AsArray();
var expectedDependencies = JsonNode.Parse(_expectedDependencies)!.AsArray();
dependencies!.Should().BeEquivalentTo(expectedDependencies!, options => options
.WithoutStrictOrdering()
.IgnoringCyclicReferences());
Expand Down Expand Up @@ -154,7 +154,7 @@ public class Given_A_Sample_ApiSchema_With_Subclass_Resources() : DependencyCalc
}
""";

private readonly string _expectedDescriptor =
private readonly string _expectedDependencies =
"""
[
{
Expand Down Expand Up @@ -197,7 +197,7 @@ public void It_should_calculate_dependencies()
var dependencies = _dependencyCalculator!.GetDependenciesFromResourceSchema();
dependencies.Should().NotBeEmpty();

var expectedDependencies = JsonNode.Parse(_expectedDescriptor)!.AsArray();
var expectedDependencies = JsonNode.Parse(_expectedDependencies)!.AsArray();
dependencies!.Should().BeEquivalentTo(expectedDependencies!, options => options
.WithoutStrictOrdering()
.IgnoringCyclicReferences());
Expand Down Expand Up @@ -290,7 +290,7 @@ public class Given_A_Sample_ApiSchema_With_Superclass_Reference() : DependencyCa
}
""";

private readonly string _expectedDescriptor =
private readonly string _expectedDescriptors =
"""
[
{
Expand Down Expand Up @@ -341,7 +341,7 @@ public void It_should_calculate_dependencies()
var dependencies = _dependencyCalculator!.GetDependenciesFromResourceSchema();
dependencies.Should().NotBeEmpty();

var expectedDependencies = JsonNode.Parse(_expectedDescriptor)!.AsArray();
var expectedDependencies = JsonNode.Parse(_expectedDescriptors)!.AsArray();
dependencies!.Should().BeEquivalentTo(expectedDependencies!, options => options
.WithoutStrictOrdering()
.IgnoringCyclicReferences());
Expand Down

0 comments on commit d4677db

Please sign in to comment.