Skip to content

Commit

Permalink
Switched to checking against flexible values in test
Browse files Browse the repository at this point in the history
  • Loading branch information
kkeirstead committed Mar 4, 2025
1 parent 28ae654 commit 27bd935
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ public class ParameterCapturingTests : IDisposable
private readonly TemporaryDirectory _tempDirectory;

private const string FileProviderName = "files";
private const string ExpectedModuleVersionId = "c2d942b3-d8e8-4121-8f2e-3de3ac1604d4";
private const int ExpectedMethodToken = 100663328;

public ParameterCapturingTests(ITestOutputHelper outputHelper, ServiceProviderFixture serviceProviderFixture)
{
Expand Down Expand Up @@ -160,8 +158,8 @@ await RunTestCaseCore(
Assert.Equal(expectedCapturedMethod.TypeName, actualMethod.TypeName);
Assert.Equal(expectedCapturedMethod.MethodName, actualMethod.MethodName);
Assert.Equal(expectedCapturedMethod.ModuleName, actualMethod.ModuleName);
Assert.Equal(ExpectedModuleVersionId, actualMethod.ModuleVersionId.ToString());
Assert.Equal(ExpectedMethodToken, (int)actualMethod.MethodToken);
Assert.NotEqual(Guid.Empty, actualMethod.ModuleVersionId);
Assert.NotEqual(0, (int)actualMethod.MethodToken);
});
}

Expand Down

0 comments on commit 27bd935

Please sign in to comment.