Clean up test filenames

This commit is contained in:
2025-12-27 10:29:07 -05:00
parent dbe2b259f6
commit 872a1cae64
6 changed files with 13 additions and 41 deletions
+5 -5
View File
@@ -11,7 +11,7 @@ public static class TestEntityHandler
public static EventDefinition[] GetEvents()
{
var fileInfo = FileUtility.GetContentFile(ContentDirectory, "2023-24 RMS TSA student & event - Event Definitions.csv");
var fileInfo = FileUtility.GetContentFile(ContentDirectory, "2024 Event Definitions.csv");
var eventRankingsParser = new EventDefinitionParser(fileInfo);
return eventRankingsParser.Parse();
}
@@ -24,7 +24,7 @@ public static class TestEntityHandler
public static Student[] GetStudents(IList<EventDefinition> events)
{
//var studentEventRankingsCsv = "Student Event Rankings.csv";
var studentEventRankingsCsv = "2023-24 RMS TSA student & event - Student Event Rankings.csv";
var studentEventRankingsCsv = "2024 Student Event Rankings.csv";
var fileInfo = FileUtility.GetContentFile(ContentDirectory, studentEventRankingsCsv);
var eventRankingsParser = new StudentParser(fileInfo);
@@ -35,7 +35,7 @@ public static class TestEntityHandler
public static Team[] GetTeams(IList<EventDefinition> events, IList<Student> students)
{
//var studentEventRankingsCsv = "Student Event Rankings.csv";
var studentEventRankingsCsv = "2023-24 RMS TSA student & event - Teams.csv";
var studentEventRankingsCsv = "2024 Teams.csv";
var fileInfo = FileUtility.GetContentFile(ContentDirectory, studentEventRankingsCsv);
var eventRankingsParser = new TeamParser(fileInfo);
@@ -50,14 +50,14 @@ public static class TestEntityHandler
public static AssignmentRequirement[] GetEventRequirements(IList<EventDefinition> events, IList<Student> students)
{
var fileInfo = FileUtility.GetContentFile(ContentDirectory, "2024-25 RMS TSA student & event - assumptions.csv");
var fileInfo = FileUtility.GetContentFile(ContentDirectory, "2025 Assumptions.csv");
var assumptionParser = new AssignmentRequirementParser(fileInfo);
return assumptionParser.Parse(events, students);
}
public static StudentEventRanking[] GetStudentEventRankings(Student[] students, EventDefinition[] events)
{
var fileInfo = FileUtility.GetContentFile(ContentDirectory, "2024-25 RMS TSA student & event - Student Event Rankings.csv");
var fileInfo = FileUtility.GetContentFile(ContentDirectory, "2025 Student Event Rankings.csv");
var rankingParser = new StudentEventRankingParser(fileInfo);
return rankingParser.Parse(students, events);
+8 -36
View File
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
@@ -7,15 +7,7 @@
<IsTestProject>true</IsTestProject>
</PropertyGroup>
<ItemGroup>
<None Remove="Parsers\TestInput\2023-24 RMS TSA student &amp; event - Event Definitions.csv" />
<None Remove="Parsers\TestInput\2023-24 RMS TSA student &amp; event - Student Event Rankings.csv" />
<None Remove="Parsers\TestInput\2023-24 RMS TSA student &amp; event - Teams.csv" />
<None Remove="Parsers\TestInput\2024 TN TSA State Competition Event Times.txt" />
<None Remove="Parsers\TestInput\2024-25 RMS TSA student &amp; event - assumptions.csv" />
<None Remove="Parsers\TestInput\2024-25 RMS TSA student &amp; event - Event Definitions.csv" />
<None Remove="Parsers\TestInput\2024-25 RMS TSA student &amp; event - Student Event Rankings.csv" />
<None Remove="Parsers\TestInput\2024-25 RMS TSA student &amp; event - Teams.csv" />
<None Remove="Parsers\TestInput\teams 20231025.csv" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.5.0" />
@@ -28,44 +20,21 @@
<ProjectReference Include="..\Core\Core.csproj" />
</ItemGroup>
<ItemGroup>
<Content Include="Parsers\TestInput\2024-25 RMS TSA student &amp; event - assumptions.csv">
<Content Include="Parsers\TestInput\2025 Assumptions.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Parsers\TestInput\2025-26 RMS TSA student &amp; event - Event Definitions.csv">
<Content Include="Parsers\TestInput\2024 Event Definitions.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Parsers\TestInput\2024-25 RMS TSA student &amp; event - Event Definitions.csv">
<Content Include="Parsers\TestInput\2024 Student Event Rankings.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Parsers\TestInput\2023-24 RMS TSA student &amp; event - Event Definitions.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Parsers\TestInput\2024-25 RMS TSA student &amp; event - Nationals Student Event Rankings.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Parsers\TestInput\2024-25 RMS TSA student &amp; event - Student Event Rankings.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Parsers\TestInput\2023-24 RMS TSA student &amp; event - Student Event Rankings.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Parsers\TestInput\2023-24 RMS TSA student &amp; event - Teams.csv">
<Content Include="Parsers\TestInput\2024 Teams.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Parsers\TestInput\2024 TN TSA State Competition Event Times.txt">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Parsers\TestInput\2024-25 RMS TSA student &amp; event - Nationals Teams.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Parsers\TestInput\2024-25 RMS TSA student &amp; event - Teams.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="Parsers\TestInput\teams 20231025.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<None Update="Parsers\TestInput\2025 TSA Nationals Competition Event Times.txt.bak">
@@ -77,5 +46,8 @@
<None Update="Parsers\TestInput\2025 TN TSA State Competition Event Times.txt">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Parsers\TestInput\TN TSA State Competition Event Times.xlsx">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
</Project>