public void SaveRecentFileListTest() { RecentFileService target = new RecentFileService(); // TODO: Initialize to an appropriate value target.SaveRecentFileList(); Assert.Inconclusive("A method that does not return a value cannot be verified."); }
public void InitServiceTest() { RecentFileService target = new RecentFileService(); target.InitService(); Assert.IsTrue(target.GetRecentFiles().Count == 0); }
public void AddRecentFileTest_Duplicate() { RecentFileService target = new RecentFileService(); target.InitService(); FilePath filePath = new FilePath(@"C:\TestPath\Project"); target.AddRecentFile(filePath); target.AddRecentFile(filePath); Assert.IsTrue(target.GetRecentFiles().Count == 1); }
public void AddRecentFileTest_FilePath() { RecentFileService target = new RecentFileService(); target.InitService(); FilePath filePath = new FilePath(@"C:\TestPath\Project"); FilePath filePath2 = new FilePath(@"C:\TestPath\Project\Path 2"); target.AddRecentFile(filePath); target.AddRecentFile(filePath2); Assert.IsTrue(target.GetRecentFiles().Contains(filePath)); Assert.IsTrue(target.GetRecentFiles().Contains(filePath2)); }
public void AddRecentFileTest_String() { RecentFileService target = new RecentFileService(); target.InitService(); string file1 = @"C:\TestPath\Project"; string file2 = @"C:\TestPath\Project\Path 2"; FilePath filePath = new FilePath(file1); FilePath filePath2 = new FilePath(file2); target.AddRecentFile(file1); target.AddRecentFile(file2); Assert.IsTrue(target.GetRecentFiles().Contains(filePath)); Assert.IsTrue(target.GetRecentFiles().Contains(filePath2)); }