示例#1
0
 public static void AddFilter(AssertFilter filter)
 {
     if (iFilterArraySize <= iNumOfFilters)
     {
         AssertFilter[] destinationArray = new AssertFilter[iFilterArraySize + 2];
         if (iNumOfFilters > 0)
         {
             Array.Copy(ListOfFilters, destinationArray, iNumOfFilters);
         }
         iFilterArraySize += 2;
         ListOfFilters     = destinationArray;
     }
     ListOfFilters[iNumOfFilters++] = filter;
 }
示例#2
0
 public static void AddFilter(AssertFilter filter)
 {
     if (iFilterArraySize <= iNumOfFilters)
     {
         AssertFilter[] destinationArray = new AssertFilter[iFilterArraySize + 2];
         if (iNumOfFilters > 0)
         {
             Array.Copy(ListOfFilters, destinationArray, iNumOfFilters);
         }
         iFilterArraySize += 2;
         ListOfFilters = destinationArray;
     }
     ListOfFilters[iNumOfFilters++] = filter;
 }
示例#3
0
        // AddFilter adds a new assert filter. This replaces the current
        // filter, unless the filter returns FailContinue. 
        //
        internal static void AddFilter(AssertFilter filter) 
        { 
            if (iFilterArraySize <= iNumOfFilters)
            { 
                AssertFilter[] newFilterArray = new AssertFilter[iFilterArraySize+2];

                if (iNumOfFilters > 0)
                    Array.Copy(ListOfFilters, newFilterArray, iNumOfFilters); 

                iFilterArraySize += 2; 
 
                ListOfFilters = newFilterArray;
            } 

            ListOfFilters [iNumOfFilters++] = filter;
        }
示例#4
0
文件: Assert.cs 项目: shrah/coreclr
 static Assert()
 {
     Filter = new DefaultFilter();
 }
示例#5
0
 static Assert()
 {
     Filter = new DefaultFilter();
 }