Ejemplo n.º 1
0
        public void Test_06_TestCreateRegularExpression( )
        {
            FileFilters filter = new FileFilters( );
            string filters = ( "Documents (*.docx; *.doc)|*.docx; *.doc||" );
            filter.PopulateCollections( filters );

            filter.CreateRegularExpressions( );
            Regex regex = filter[ 0 ];
            Assert.AreEqual( @"(.+\.docx$)|(.+\.doc$)", regex.ToString( ) );
        }