Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ public class IsDatasetFileTests
[TestCase("DataSets/foo.json", ExpectedResult = true)] // root-level, mixed case
[TestCase("DataSets/LCA/deep/x.json", ExpectedResult = true)] // root-level, nested

// Versioning upgrade maps. The live case is a project directory supplying the
// "datasets" substring, which is how BuroHappold_Datasets/Versioning_93.json and
// BHoM_Datasets/Versioning_100.json get selected at all.
// Versioning upgrade maps. A project directory supplying the "datasets" substring is
// the only way a file named like this is selected at all, and BHoM_Datasets has that
// layout: one .csproj in a directory whose name carries the substring.
[TestCase("BHoM_Datasets/Versioning_93.json", ExpectedResult = false)]
[TestCase("BHoM_Datasets/Versioning_100.json", ExpectedResult = false)]
[TestCase(@"BHoM_Datasets\Versioning_93.json", ExpectedResult = false)] // backslash separators
Expand Down Expand Up @@ -77,8 +77,8 @@ public bool IsDatasetFile(string file)
// The upgrade-map rule on its own, so a failure says which of the two predicates moved.
// These paths carry no "datasets" substring, so IsDatasetFile rejects them anyway and
// could not distinguish the two.
[TestCase("Tagging_oM/Versioning_93.json", ExpectedResult = true)]
[TestCase("Tagging_oM/Versioning_Rules.json", ExpectedResult = false)]
[TestCase("Structure_oM/Versioning_93.json", ExpectedResult = true)]
[TestCase("Structure_oM/Versioning_Rules.json", ExpectedResult = false)]
[TestCase("Versioning_93.json", ExpectedResult = true)] // no directory at all
[TestCase("Structure_oM/Versioning_93.txt", ExpectedResult = true)] // extension is IsDatasetFile's job
public bool IsVersioningUpgradeMap(string file)
Expand Down
Loading