Skip to content

Commit

Permalink
Fix failling stress test (#56859)
Browse files Browse the repository at this point in the history
  • Loading branch information
buyaa-n authored Aug 5, 2021
1 parent 94f8f0c commit 5a02633
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,14 +232,14 @@ public void GetMethod()

[Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/51912", typeof(PlatformDetection), nameof(PlatformDetection.IsBuiltWithAggressiveTrimming), nameof(PlatformDetection.IsBrowser))]
[ActiveIssue("https://github.com/dotnet/runtime/issues/50831")]
public void GetMethods()
{
var methodNames = TestModule.GetMethods().Select(m => m.Name).ToArray();
AssertExtensions.SequenceEqual(new[]{ "TestMethodFoo", "TestMethodFoo" }, methodNames );

methodNames = TestModule.GetMethods(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static).Select(m => m.Name).ToArray();
AssertExtensions.SequenceEqual(new[]{ "TestMethodFoo", "TestMethodFoo", "TestMethodBar" }, methodNames );
Array.Sort<string>(methodNames);
AssertExtensions.SequenceEqual(new[]{ "TestMethodBar", "TestMethodFoo", "TestMethodFoo" }, methodNames );
}

public static IEnumerable<Type> Types => Module.GetTypes();
Expand Down

0 comments on commit 5a02633

Please sign in to comment.