@@ -192,9 +192,9 @@ public void TestFindInterspersedWithSpace()
192192 DoTestFindInContext ( "0 3 3 3 1 6 0 0 5" , "NZ" ) ;
193193 }
194194
195- /**
196- * Test matching behavior when starting in the middle of a phone number.
197- */
195+ /// <summary>
196+ /// Test matching behavior when starting in the middle of a phone number.
197+ /// </summary>
198198 [ Fact ]
199199 public void TestIntermediateParsePositions ( )
200200 {
@@ -403,9 +403,9 @@ public void TestDoesNotMatchMultiplePhoneNumbersSeparatedWithNoWhiteSpace()
403403 Assert . True ( HasNoMatches ( phoneUtil . FindNumbers ( text , region ) ) ) ;
404404 }
405405
406- /**
407- * Strings with number-like things that shouldn't be found under any level.
408- */
406+ /// <summary>
407+ /// Strings with number-like things that shouldn't be found under any level.
408+ /// </summary>
409409 private static readonly NumberTest [ ] ImpossibleCases =
410410 {
411411 new NumberTest ( "12345" , "US" ) ,
@@ -423,9 +423,9 @@ public void TestDoesNotMatchMultiplePhoneNumbersSeparatedWithNoWhiteSpace()
423423 new NumberTest ( "20120102 08:00" , RegionCode . US )
424424 } ;
425425
426- /**
427- * Strings with number-like things that should only be found under "possible".
428- */
426+ /// <summary>
427+ /// Strings with number-like things that should only be found under "possible".
428+ /// </summary>
429429 private static readonly NumberTest [ ] PossibleOnlyCases =
430430 {
431431 // US numbers cannot start with 7 in the test metadata to be valid.
@@ -437,10 +437,10 @@ public void TestDoesNotMatchMultiplePhoneNumbersSeparatedWithNoWhiteSpace()
437437 new NumberTest ( "(20) 3346 1234" , RegionCode . GB ) // Non-optional NP omitted
438438 } ;
439439
440- /**
441- * Strings with number-like things that should only be found up to and including the "valid"
442- * leniency level.
443- */
440+ /// <summary>
441+ /// Strings with number-like things that should only be found up to and including the "valid"
442+ /// leniency level.
443+ /// </summary>
444444 private static readonly NumberTest [ ] ValidCases =
445445 {
446446 new NumberTest ( "65 02 53 00 00" , "US" ) ,
@@ -464,10 +464,10 @@ public void TestDoesNotMatchMultiplePhoneNumbersSeparatedWithNoWhiteSpace()
464464 new NumberTest ( "0 3 0 -3 2 23 12 34" , RegionCode . DE )
465465 } ;
466466
467- /**
468- * Strings with number-like things that should only be found up to and including the
469- * "strict_grouping" leniency level.
470- */
467+ /// <summary>
468+ /// Strings with number-like things that should only be found up to and including the
469+ /// "strict_grouping" leniency level.
470+ /// </summary>
471471 private static readonly NumberTest [ ] StrictGroupingCases =
472472 {
473473 new NumberTest ( "(415) 6667777" , "US" ) ,
@@ -482,9 +482,9 @@ public void TestDoesNotMatchMultiplePhoneNumbersSeparatedWithNoWhiteSpace()
482482 new NumberTest ( "0 900-1 123123" , RegionCode . DE )
483483 } ;
484484
485- /**
486- * Strings with number-like things that should be found at all levels.
487- */
485+ /// <summary>
486+ /// Strings with number-like things that should be found at all levels.
487+ /// </summary>
488488 private static readonly NumberTest [ ] ExactGroupingCases = {
489489 new NumberTest ( "\uFF14 \uFF11 \uFF15 \uFF16 \uFF16 \uFF16 \uFF17 \uFF17 \uFF17 \uFF17 " , "US" ) ,
490490 new NumberTest ( "\uFF14 \uFF11 \uFF15 -\uFF16 \uFF16 \uFF16 -\uFF17 \uFF17 \uFF17 \uFF17 " , "US" ) ,
@@ -634,13 +634,13 @@ private void DoTestNumberNonMatchesForLeniency(List<NumberTest> testCases,
634634 Assert . Equal ( 0 , matchFoundCount ) ;
635635 }
636636
637- /**
638- * Helper method which tests the contexts provided and ensures that:
639- * -- if isValid is true, they all find a test number inserted in the middle when leniency of
640- * matching is set to VALID; else no test number should be extracted at that leniency level
641- * -- if isPossible is true, they all find a test number inserted in the middle when leniency of
642- * matching is set to POSSIBLE; else no test number should be extracted at that leniency level
643- */
637+ /// <summary>
638+ /// Helper method which tests the contexts provided and ensures that:
639+ /// -- if isValid is true, they all find a test number inserted in the middle when leniency of
640+ /// matching is set to VALID; else no test number should be extracted at that leniency level
641+ /// -- if isPossible is true, they all find a test number inserted in the middle when leniency of
642+ /// matching is set to POSSIBLE; else no test number should be extracted at that leniency level
643+ /// </summary>
644644 private void FindMatchesInContexts ( List < NumberContext > contexts , bool isValid ,
645645 bool isPossible , string region , string number )
646646 {
@@ -673,9 +673,9 @@ private void FindMatchesInContexts(List<NumberContext> contexts, bool isValid,
673673 }
674674 }
675675
676- /**
677- * Variant of FindMatchesInContexts that uses a default number and region.
678- */
676+ /// <summary>
677+ /// Variant of FindMatchesInContexts that uses a default number and region.
678+ /// </summary>
679679 private void FindMatchesInContexts ( List < NumberContext > contexts , bool isValid , bool isPossible )
680680 {
681681 const string region = "US" ;
@@ -861,10 +861,10 @@ public void TestSingleIteration()
861861 iterator . Dispose ( ) ;
862862 }
863863
864- /**
865- * Asserts that another number can be found in {@code text} starting at {@code index} , and that
866- * its corresponding range is {@code [start, end)} .
867- */
864+ /// <summary>
865+ /// Asserts that another number can be found in <c> text</c> starting at <c> index</c> , and that
866+ /// its corresponding range is <c> [start, end)</c> .
867+ /// </summary>
868868 [ SuppressMessage ( "ReSharper" , "UnusedParameter.Local" ) ]
869869 private void AssertEqualRange ( string text , int index , int start , int end )
870870 {
@@ -879,12 +879,11 @@ private void AssertEqualRange(string text, int index, int start, int end)
879879 matches . Dispose ( ) ;
880880 }
881881
882- /**
883- * Tests numbers found by {@link PhoneNumberUtil#FindNumbers(CharSequence, String)} in various
884- * textual contexts.
885- *
886- * @param number the number to test and the corresponding region code to use
887- */
882+ /// <summary>
883+ /// Tests numbers found by <see cref="PhoneNumberUtil.FindNumbers(string, string)"/> in various
884+ /// textual contexts.
885+ /// </summary>
886+ /// <param name="number">the number to test and the corresponding region code to use</param>
888887#if NET6_0_OR_GREATER
889888 private void DoTestFindInContext ( string number , string ? defaultCountry )
890889#else
@@ -938,9 +937,9 @@ private void FindPossibleInContext(string number, string defaultCountry)
938937 DoTestInContext ( number , defaultCountry , contextPairs , PhoneNumberUtil . Leniency . POSSIBLE ) ;
939938 }
940939
941- /**
942- * Tests valid numbers in contexts that fail for {@link Leniency# POSSIBLE} .
943- */
940+ /// <summary>
941+ /// Tests valid numbers in contexts that fail for <see cref="PhoneNumberUtil. Leniency. POSSIBLE"/> .
942+ /// </summary>
944943#if NET6_0_OR_GREATER
945944 private void FindValidInContext ( string number , string ? defaultCountry )
946945#else
@@ -987,10 +986,10 @@ private void DoTestInContext(string number, string defaultCountry, List<NumberCo
987986 }
988987 }
989988
990- /**
991- * Exhaustively searches for phone numbers from each index within {@code text} to test that
992- * finding matches always terminates.
993- */
989+ /// <summary>
990+ /// Exhaustively searches for phone numbers from each index within <c> text</c> to test that
991+ /// finding matches always terminates.
992+ /// </summary>
994993#if NET6_0_OR_GREATER
995994 private void EnsureTermination ( string text , string ? defaultCountry , PhoneNumberUtil . Leniency leniency )
996995#else
@@ -1013,18 +1012,18 @@ private IEnumerable<PhoneNumberMatch> FindNumbersForLeniency(
10131012 return phoneUtil . FindNumbers ( text , defaultCountry , leniency , long . MaxValue ) ;
10141013 }
10151014
1016- /**
1017- * Returns true if there were no matches found.
1018- */
1015+ /// <summary>
1016+ /// Returns true if there were no matches found.
1017+ /// </summary>
10191018 private bool HasNoMatches ( IEnumerable < PhoneNumberMatch > iterable )
10201019 {
10211020 return ! iterable . GetEnumerator ( ) . MoveNext ( ) ;
10221021 }
10231022
1024- /**
1025- * Small class that holds the context of the number we are testing against. The test will
1026- * insert the phone number to be found between leadingText and trailingText.
1027- */
1023+ /// <summary>
1024+ /// Small class that holds the context of the number we are testing against. The test will
1025+ /// insert the phone number to be found between leadingText and trailingText.
1026+ /// </summary>
10281027 private class NumberContext
10291028 {
10301029 public readonly string LeadingText ;
@@ -1037,9 +1036,9 @@ public NumberContext(string leadingText, string trailingText)
10371036 }
10381037 }
10391038
1040- /**
1041- * Small class that holds the number we want to test and the region for which it should be valid.
1042- */
1039+ /// <summary>
1040+ /// Small class that holds the number we want to test and the region for which it should be valid.
1041+ /// </summary>
10431042 private class NumberTest
10441043 {
10451044 public readonly string RawString ;
0 commit comments