|
|
@ -71,7 +71,7 @@ namespace MediaBrowser.Tests.ConsistencyTests
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// List of file extension to search.
|
|
|
|
/// List of file extension to search.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
public static string[] TargetExtensions = new[] { "js", "html" };
|
|
|
|
public static string[] TargetExtensions = new[] { ".js", ".html" };
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// List of paths to exclude from search.
|
|
|
|
/// List of paths to exclude from search.
|
|
|
@ -96,11 +96,11 @@ namespace MediaBrowser.Tests.ConsistencyTests
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[TestMethod]
|
|
|
|
//[TestMethod]
|
|
|
|
public void ReportStringUsage()
|
|
|
|
//public void ReportStringUsage()
|
|
|
|
{
|
|
|
|
//{
|
|
|
|
this.CheckDashboardStrings(false);
|
|
|
|
// this.CheckDashboardStrings(false);
|
|
|
|
}
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
[TestMethod]
|
|
|
|
[TestMethod]
|
|
|
|
public void ReportUnusedStrings()
|
|
|
|
public void ReportUnusedStrings()
|
|
|
@ -135,7 +135,7 @@ namespace MediaBrowser.Tests.ConsistencyTests
|
|
|
|
|
|
|
|
|
|
|
|
var allFiles = rootFolderInfo.GetFiles("*", SearchOption.AllDirectories);
|
|
|
|
var allFiles = rootFolderInfo.GetFiles("*", SearchOption.AllDirectories);
|
|
|
|
|
|
|
|
|
|
|
|
var filteredFiles1 = allFiles.Where(f => TargetExtensions.Any(e => f.Name.EndsWith(e)));
|
|
|
|
var filteredFiles1 = allFiles.Where(f => TargetExtensions.Any(e => string.Equals(e, f.Extension, StringComparison.OrdinalIgnoreCase)));
|
|
|
|
var filteredFiles2 = filteredFiles1.Where(f => !ExcludePaths.Any(p => f.FullName.Contains(p)));
|
|
|
|
var filteredFiles2 = filteredFiles1.Where(f => !ExcludePaths.Any(p => f.FullName.Contains(p)));
|
|
|
|
|
|
|
|
|
|
|
|
var selectedFiles = filteredFiles2.OrderBy(f => f.FullName).ToList();
|
|
|
|
var selectedFiles = filteredFiles2.OrderBy(f => f.FullName).ToList();
|
|
|
|