@@ -40,9 +40,9 @@ namespace log4net.Tests.Appender;
4040/// Used for internal unit testing the <see cref="RollingFileAppender"/> class. 
4141/// </summary> 
4242[ TestFixture ] 
43- public  sealed   class  RollingFileAppenderTest 
43+ public  class  RollingFileAppenderTest 
4444{ 
45-   private   const  string  FileName  =  "test_41d3d834_4320f4da.log" ; 
45+   protected  string  FileName  =  "test_41d3d834_4320f4da.log" ; 
4646
4747  private  const  string  TestMessage98Chars  = 
4848    "01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567" ; 
@@ -99,7 +99,7 @@ private void InitializeVariables()
9999  /// with all appenders, and deletes any test files used 
100100  /// for logging. 
101101  /// </summary> 
102-   private  static   void  ResetAndDeleteTestFiles ( ) 
102+   private  void  ResetAndDeleteTestFiles ( ) 
103103  { 
104104    // Regular users should not use the clear method lightly! 
105105    LogManager . GetRepository ( ) . ResetConfiguration ( ) ; 
@@ -144,7 +144,7 @@ public void TearDown()
144144  /// Finds the number of files that match the base file name, 
145145  /// and matches the result against an expected count 
146146  /// </summary> 
147-   private  static   void  VerifyFileCount ( int  expectedCount ,  bool  preserveLogFileNameExtension  =  false ) 
147+   private  void  VerifyFileCount ( int  expectedCount ,  bool  preserveLogFileNameExtension  =  false ) 
148148  { 
149149    List < string >  files  =  GetExistingFiles ( FileName ,  preserveLogFileNameExtension ) ; 
150150    Assert . That ( files ,  Is . Not . Null ) ; 
@@ -154,7 +154,7 @@ private static void VerifyFileCount(int expectedCount, bool preserveLogFileNameE
154154  /// <summary> 
155155  /// Creates a file with the given number, and the shared base file name 
156156  /// </summary> 
157-   private  static   void  CreateFile ( int  fileNumber ) 
157+   private  void  CreateFile ( int  fileNumber ) 
158158  { 
159159    FileInfo  fileInfo  =  new ( MakeFileName ( FileName ,  fileNumber ) ) ; 
160160
@@ -240,7 +240,7 @@ public void RollingCombinedWithPreserveExtension()
240240  /// <summary> 
241241  /// Removes all test files that exist 
242242  /// </summary> 
243-   private  static   void  DeleteTestFiles ( ) 
243+   private  void  DeleteTestFiles ( ) 
244244  { 
245245    List < string >  files  =  GetExistingFiles ( FileName ) ; 
246246    files . AddRange ( GetExistingFiles ( FileName ,  true ) ) ; 
@@ -469,7 +469,7 @@ private static int MessagesPerFile(int messageLength)
469469  /// Current file name is always the base file name when counting. Dates will need a different approach. 
470470  /// </summary> 
471471  /// <returns></returns> 
472-   private  static   string  GetCurrentFile ( )  =>  FileName ; 
472+   private  string  GetCurrentFile ( )  =>  FileName ; 
473473
474474  /// <summary> 
475475  /// Turns a group of file names into an array of file entries that include the name 
@@ -604,7 +604,7 @@ private static RollConditions BuildTableEntry(string backupFiles,
604604  /// <param name="rollingStats"></param> 
605605  /// <param name="currentNext"></param> 
606606  /// <returns></returns> 
607-   private  static   RollFileEntry  MoveNextEntry ( RollingStats  rollingStats ,  RollFileEntry  currentNext ) 
607+   private  RollFileEntry  MoveNextEntry ( RollingStats  rollingStats ,  RollFileEntry  currentNext ) 
608608  { 
609609    rollingStats . MessagesThisFile ++ ; 
610610    if  ( rollingStats . MessagesThisFile  >=  rollingStats . MessagesPerFile ) 
@@ -621,7 +621,7 @@ private static RollFileEntry MoveNextEntry(RollingStats rollingStats, RollFileEn
621621  /// Callback point for the regular expression parser.  Turns 
622622  /// the number into a file name. 
623623  /// </summary> 
624-   private  static   string  NumberedNameMaker ( Match  match )  
624+   private  string  NumberedNameMaker ( Match  match )  
625625    =>  MakeFileName ( FileName ,  int . Parse ( match . Value ) ) ; 
626626
627627  /// <summary> 
@@ -642,7 +642,7 @@ private static string ConvertToFiles(string backupInfo, MatchEvaluator evaluator
642642  /// that results after each message is logged</param> 
643643  /// <param name="messagesToLog">How many times the test message will be repeatedly logged</param> 
644644  /// <returns></returns> 
645-   private  static   RollConditions [ ]  MakeNumericTestEntries ( 
645+   private  RollConditions [ ]  MakeNumericTestEntries ( 
646646    string  testMessage ,  
647647    string  backupInfo , 
648648    int  messagesToLog ) 
@@ -660,7 +660,7 @@ private static RollConditions[] MakeNumericTestEntries(
660660  /// <param name="messagesToLog">How many times the test message will be repeatedly logged</param> 
661661  /// <param name="evaluator">Function that can turn a number into a filename</param> 
662662  /// <returns></returns> 
663-   private  static   RollConditions [ ]  MakeTestEntries ( 
663+   private  RollConditions [ ]  MakeTestEntries ( 
664664    string  testMessage , 
665665    string  backupInfo , 
666666    int  messagesToLog , 
@@ -1592,7 +1592,7 @@ private static void VerifyInitializeDownFixedExpectedValue(List<string> files, s
15921592  ///  
15931593  /// </summary> 
15941594  /// <param name="fileNumbers">Comma separated list of numbers for counted file names</param> 
1595-   private  static   List < string >  MakeTestDataFromString ( string  fileNumbers ) 
1595+   private  List < string >  MakeTestDataFromString ( string  fileNumbers ) 
15961596    =>  MakeTestDataFromString ( FileName ,  fileNumbers ) ; 
15971597
15981598  /// <summary> 
0 commit comments