public void AddFiles_Test() { TestProject testProject = new TestProject(); projectTreeModel.TestProject = testProject; string fileName = Assembly.GetExecutingAssembly().Location; List <string> list = new List <string>(new[] { fileName }); fileSystem.Stub(fs => fs.FileExists(fileName)).Return(true); var progressMonitor = MockProgressMonitor.Instance; Assert.Count(0, projectController.TestPackage.Files); projectController.AddFiles(progressMonitor, list); Assert.Count(1, projectController.TestPackage.Files); Assert.AreEqual(fileName, projectController.TestPackage.Files[0].ToString()); }