コード例 #1
0
        public void ReferencedProjectFiles_AddFile_ReferencesFile()
        {
            string filePath = @"c:\temp\Test.cs";

            ReferencedProjectFiles referencedProjectFiles = new ReferencedProjectFiles();

            referencedProjectFiles.AddFile(filePath);

            Assert.True(referencedProjectFiles.IsFileReferenced(filePath));
        }
コード例 #2
0
        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));
        }