Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade NUnit to 4.3.0. Fix some tests. #821

Merged
merged 1 commit into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="8.0.0" />
<PackageVersion Include="Nerdbank.GitVersioning" Version="3.7.112" />
<PackageVersion Include="NSubstitute" Version="5.3.0" />
<PackageVersion Include="NUnit" Version="4.2.2" />
<PackageVersion Include="NUnit" Version="4.3.0" />
<PackageVersion Include="NUnit.Analyzers" Version="4.4.0" />
<PackageVersion Include="NUnit3TestAdapter" Version="4.6.0" />
<PackageVersion Include="StyleCop.Analyzers" Version="1.2.0-beta.556" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,7 @@ public void VarTest()
var exp = Variable.Y;
var deriv = Differentiate(exp);

Assert.That(deriv, Is.EqualTo(Variable.Y));
Assert.That(deriv, Is.EqualTo(Variable.Y as IExpression));
}

#endregion Common
Expand Down
2 changes: 1 addition & 1 deletion xFunc.Tests/BuilderTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public void VariableCtorTest()
{
var exp = new Builder("x").Expression;

Assert.That(exp, Is.EqualTo(Variable.X));
Assert.That(exp, Is.EqualTo(Variable.X as IExpression));
}

[Test]
Expand Down
2 changes: 1 addition & 1 deletion xFunc.Tests/Expressions/VariableTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void StringToConvert()
var exp = (Variable)"x";
var result = Variable.X;

Assert.That(exp, Is.EqualTo(result));
Assert.That(exp, Is.EqualTo(result as IExpression));
}

[Test]
Expand Down
Loading