Skip to content

Commit

Permalink
Fix failling stress test
Browse files Browse the repository at this point in the history
  • Loading branch information
buyaa-n committed Aug 4, 2021
1 parent 16b4564 commit b2b23fa
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 b2b23fa

Please sign in to comment.