File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed
Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -493,6 +493,24 @@ public void Load_SetsProjectPath()
493493 Assert . That ( loadedProject . ProjectPath , Is . EqualTo ( "TestCentricTestProject.tcproj" ) ) ;
494494 }
495495
496+ [ Test ]
497+ public void Load_SetsTestFiles ( )
498+ {
499+ // 1. Arrange
500+ TestCentricProject project = new TestCentricProject ( new GuiOptions ( "Test1.dll" , "Test2.dll" ) ) ;
501+ project . SaveAs ( "TestCentricTestProject.tcproj" ) ;
502+
503+ TestCentricProject loadedProject = new TestCentricProject ( ) ;
504+
505+ // 2. Act
506+ loadedProject . Load ( "TestCentricTestProject.tcproj" ) ;
507+
508+ // 3. Assert
509+ Assert . That ( loadedProject . TestFiles . Count , Is . EqualTo ( 2 ) ) ;
510+ Assert . That ( loadedProject . TestFiles [ 0 ] , Does . EndWith ( "Test1.dll" ) ) ;
511+ Assert . That ( loadedProject . TestFiles [ 1 ] , Does . Contain ( "Test2.dll" ) ) ;
512+ }
513+
496514 #endregion
497515
498516 #region FileName and ProjectPath Tests
Original file line number Diff line number Diff line change @@ -100,6 +100,11 @@ public void Load(string path)
100100 }
101101 }
102102
103+ // Update the list of test files
104+ TestFiles . Clear ( ) ;
105+ foreach ( TestPackage subPackage in TopLevelPackage . SubPackages )
106+ TestFiles . Add ( subPackage . FullName ) ;
107+
103108 bool FindTestCentricProjectElement ( )
104109 {
105110 while ( xmlReader . Read ( ) )
You can’t perform that action at this time.
0 commit comments