public void ReferencedProjectFiles_AddFile_ReferencesFile() { string filePath = @"c:\temp\Test.cs"; ReferencedProjectFiles referencedProjectFiles = new ReferencedProjectFiles(); referencedProjectFiles.AddFile(filePath); Assert.True(referencedProjectFiles.IsFileReferenced(filePath)); }
public void ReferencedProjectFiles_IsFileReferenced_ReturnsFalseForSameFileDifferentDirectory() { string referencedFilePath = @"c:\temp\Test.cs"; string nonReferencedFilePath = @"c:\temp2\Test.cs"; ReferencedProjectFiles referencedProjectFiles = new ReferencedProjectFiles(); referencedProjectFiles.AddFile(referencedFilePath); Assert.False(referencedProjectFiles.IsFileReferenced(nonReferencedFilePath)); }