Skip to content
This repository has been archived by the owner on Mar 27, 2022. It is now read-only.

Commit

Permalink
Merge pull request #19 from avans-alga-dpa/tests/persistence
Browse files Browse the repository at this point in the history
Persistence Tests
  • Loading branch information
Sander0542 authored Oct 28, 2021
2 parents 69d6c7b + c3222f2 commit f990251
Show file tree
Hide file tree
Showing 7 changed files with 610 additions and 4 deletions.
15 changes: 11 additions & 4 deletions Avans.FlatGalaxy.sln
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Avans.FlatGalaxy.Models", "
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{AF26DE88-D3ED-40FC-BFA5-3F1B6785D335}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Avans.FlatGalaxy.Persistence.Tests", "tests\Avans.FlatGalaxy.Persistence.Tests\Avans.FlatGalaxy.Persistence.Tests.csproj", "{9F26A102-93BD-4F60-9162-90EFA05F452E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Avans.FlatGalaxy.Simulation.Tests", "tests\Avans.FlatGalaxy.Simulation.Tests\Avans.FlatGalaxy.Simulation.Tests.csproj", "{4F05D115-2360-4A21-A718-BFB014C61289}"
EndProject
Global
Expand All @@ -32,10 +34,14 @@ Global
{F4EE573C-B975-42A0-888A-456221CEE227}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F4EE573C-B975-42A0-888A-456221CEE227}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F4EE573C-B975-42A0-888A-456221CEE227}.Release|Any CPU.Build.0 = Release|Any CPU
{CD0E92F8-3A94-42C9-A24A-0593C1D4230F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CD0E92F8-3A94-42C9-A24A-0593C1D4230F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CD0E92F8-3A94-42C9-A24A-0593C1D4230F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CD0E92F8-3A94-42C9-A24A-0593C1D4230F}.Release|Any CPU.Build.0 = Release|Any CPU
{CD0E92F8-3A94-42C9-A24A-0593C1D4230F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CD0E92F8-3A94-42C9-A24A-0593C1D4230F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CD0E92F8-3A94-42C9-A24A-0593C1D4230F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CD0E92F8-3A94-42C9-A24A-0593C1D4230F}.Release|Any CPU.Build.0 = Release|Any CPU
{9F26A102-93BD-4F60-9162-90EFA05F452E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9F26A102-93BD-4F60-9162-90EFA05F452E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9F26A102-93BD-4F60-9162-90EFA05F452E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9F26A102-93BD-4F60-9162-90EFA05F452E}.Release|Any CPU.Build.0 = Release|Any CPU
{4F05D115-2360-4A21-A718-BFB014C61289}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4F05D115-2360-4A21-A718-BFB014C61289}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4F05D115-2360-4A21-A718-BFB014C61289}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand All @@ -46,6 +52,7 @@ Global
{89B5ABAF-73F2-4682-AB42-048DCA3C4BB7} = {7996173C-8F81-4B28-A46A-0529C89FF0C8}
{F4EE573C-B975-42A0-888A-456221CEE227} = {7996173C-8F81-4B28-A46A-0529C89FF0C8}
{CD0E92F8-3A94-42C9-A24A-0593C1D4230F} = {7996173C-8F81-4B28-A46A-0529C89FF0C8}
{9F26A102-93BD-4F60-9162-90EFA05F452E} = {AF26DE88-D3ED-40FC-BFA5-3F1B6785D335}
{4F05D115-2360-4A21-A718-BFB014C61289} = {AF26DE88-D3ED-40FC-BFA5-3F1B6785D335}
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,15 @@
<ProjectReference Include="..\Avans.FlatGalaxy.Models\Avans.FlatGalaxy.Models.csproj" />
</ItemGroup>

<ItemGroup>
<None Remove="planetsExtended.csv" />
<Content Include="planetsExtended.csv">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<None Remove="planetsExtended.xml" />
<Content Include="planetsExtended.xml">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>

</Project>
24 changes: 24 additions & 0 deletions src/Avans.FlatGalaxy.Persistence/planetsExtended.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name;type;x;y;vx;vy;neighbours;radius;color;oncollision
Kobol;Planet;45;310;0.3;-0.6;Unicron,Koarth;7;blue;blink
Namek;Planet;60;102;0.1;0.2;Helicon,Synnax,Xenex,Alderaan;15;orange;blink
Monea;Planet;105;290;-0.5;-0.1;Koarth,Solaria;7;grey;blink
Alderaan;Planet;110;400;-1;0.2;Unicron,Namek;7;brown;blink
Unicron;Planet;145;379;0.01;0.5;Kobol,Alderaan;7;blue;blink
Twinsum;Planet;195;480;0.2;0.1;Solaria,Trantor;7;purple;blink
Koarth;Planet;210;190;0.1;0.99;Kobol,Monea,Synnax;7;blue;blink
Helicon;Planet;219;95;0.01;0.2;Namek,Synnax;7;brown;blink
Solaria;Planet;240;322;0.3;-0.5;Monea,Twinsum,Xenex;15;orange;blink
Synnax;Planet;405;202;0.9;0.2;Namek,Koarth,Helicon,Trantor;7;pink;blink
Trantor;Planet;501;130;-0.5;-0.1;Twinsum,Synnax;7;purple;blink
Xenex;Planet;711;580;0.3;0.2;Solaria,Namek;7;blue;blink
;Asteroid;85;56;0;-1.5;;5;black;blink
;Asteroid;705;112;2;1;;5;black;bounce
;Asteroid;28;507;1;3;;5;black;disappear
;Asteroid;478;380;0;1;;5;black;bounce
;Asteroid;636;392;5;-1;;5;black;explode
;Asteroid;47;255;-2;-3;;5;black;explode
;Asteroid;320;250;-1;3;;5;black;bounce
;Asteroid;408;432;2;1;;5;black;bounce
;Asteroid;422;557;1;-1;;5;black;blink
;Asteroid;601;276;2;-2;;5;black;grow
;Asteroid;626;464;3;1;;5;black;disappear
Loading

0 comments on commit f990251

Please sign in to comment.