Skip to content

Commit

Permalink
Remove erroneous Equal<object> calls
Browse files Browse the repository at this point in the history
  • Loading branch information
bradwilson committed Jun 27, 2022
1 parent 2c2f059 commit 8217558
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public void SerializesEnumsAsStrings()

var result = Encoding.UTF8.GetString(msg.ToJson());

Assert.Equal<object>(
Assert.Equal(
@"{" +
@"""$type"":""TestMessageWithEnum""," +
@"""Cause"":""Assertion""" +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public void SuccessCases(
{
var actual = UniqueIDGenerator.ForAssembly(assemblyName, assemblyPath, configFilePath);

Assert.Equal<object>(expected, actual);
Assert.Equal(expected, actual);
}

[Fact]
Expand Down
2 changes: 1 addition & 1 deletion src/xunit.v3.core.tests/Sdk/TestCaseSerializerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public static void DeserializedTestCaseContainsSameDataAsOriginalTestCase()
Assert.Equal(testCase.TestCollection.UniqueID, result.TestCollection.UniqueID);
Assert.Equal(testCase.TestMethod.TestClass.Class.Name, result.TestClass?.Class.Name);
Assert.Equal(testCase.TestMethod.Method.Name, result.TestMethod?.Method.Name);
Assert.Equal<object>(testCase.TestCaseDisplayName, result.TestCaseDisplayName);
Assert.Equal(testCase.TestCaseDisplayName, result.TestCaseDisplayName);
Assert.Equal(testCase.SkipReason, result.SkipReason);
Assert.Equal(testCase.Timeout, result.Timeout);
Assert.Null(result.TestMethodArguments);
Expand Down

0 comments on commit 8217558

Please sign in to comment.