System.Text.RegularExpressions.Tests.GroupCollectionTests.ICollection_Properties C# (CSharp) Method

ICollection_Properties() private method

private ICollection_Properties ( ) : void
return void
        public static void ICollection_Properties()
        {
            Regex regex = new Regex(@"(?<A1>a*)(?<A2>b*)(?<A3>c*)");
            GroupCollection groups = regex.Match("aaabbccccccccccaaaabc").Groups;
            ICollection collection = groups;

            Assert.False(collection.IsSynchronized);
            Assert.NotNull(collection.SyncRoot);
            Assert.Same(collection.SyncRoot, collection.SyncRoot);
        }