Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit

Permalink
AlwasyOn Profiller - Test case for non standard characters in names (#…
Browse files Browse the repository at this point in the history
…440)

* AlwasyOn Profiller - Test case for non standard characters in names

* fix test
  • Loading branch information
Kielek authored Mar 24, 2022
1 parent f861066 commit af10433
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ private static bool ContainStackTraceForClassHierarchy(LogRecord logRecord)
{
return logRecord.Body.StringValue.Contains(
"\tat System.Threading.Thread.Sleep(System.TimeSpan)\n" +
"\tat My.Custom.Test.Namespace.ClassE`1.GenericMethodDFromGenericClass[TMethod, TMethod2](TClass, TMethod, TMethod2)\n" +
"\tat My.Custom.Test.Namespace.ClassENonStandardCharacters\u0104\u0118\u00D3\u0141\u017B\u0179\u0106\u0105\u0119\u00F3\u0142\u017C\u017A\u015B\u0107\u011C\u0416\u13F3\u2CC4\u02A4\u01CB\u2093\u06BF\u0B1F\u0D10\u1250\u3023\u203F\u0A6E\u1FAD_\u00601.GenericMethodDFromGenericClass[TMethod, TMethod2](TClass, TMethod, TMethod2)\n" +
"\tat My.Custom.Test.Namespace.ClassD`21.MethodD(T01, T02, T03, T04, T05, T06, T07, T08, T09, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, Unknown)\n" +
"\tat My.Custom.Test.Namespace.GenericClassC`1.GenericMethodCFromGenericClass[T01, T02, T03, T04, T05, T06, T07, T08, T09, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20](T01, T02, T03, T04, T05, T06, T07, T08, T09, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, Unknown)\n" +
"\tat My.Custom.Test.Namespace.GenericClassC`1.GenericMethodCFromGenericClass(T)\n" +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,11 @@ internal static class ClassD<T01, T02, T03, T04, T05, T06, T07, T08, T09, T10, T
// Always on profiler supports fetching at most 20 generic arguments. This class covers scenario where there are more than 20 parameters.
public static void MethodD(T01 p01, T02 p02, T03 p03, T04 p04, T05 p05, T06 p06, T07 p07, T08 p08, T09 p09, T10 p10, T11 p11, T12 p12, T13 p13, T14 p14, T15 p15, T16 p16, T17 p17, T18 p18, T19 p19, T20 p20, T21 p21)
{
ClassE<TimeSpan>.GenericMethodDFromGenericClass(TimeSpan.MaxValue, p01, 1);

ClassENonStandardCharactersĄĘÓŁŻŹĆąęółżźśćĜЖᏳⳄʤNjₓڿଟഐቐ〣‿؁੮ᾭ_<TimeSpan>.GenericMethodDFromGenericClass(TimeSpan.MaxValue, p01, 1);
}
}

internal static class ClassE<TClass>
internal static class ClassENonStandardCharactersĄĘÓŁŻŹĆąęółżźśćĜЖᏳⳄʤNjₓڿଟഐቐ〣‿؁੮ᾭ_<TClass>
{
public static void GenericMethodDFromGenericClass<TMethod, TMethod2>(TClass classArg, TMethod methodArg, TMethod2 additionalArg)
{
Expand Down

0 comments on commit af10433

Please sign in to comment.