From 1267a9715a65a4acefa41226b9e4c3c976434307 Mon Sep 17 00:00:00 2001 From: Chikashi Miyama Date: Tue, 1 Oct 2019 22:20:55 +0200 Subject: [PATCH] add unit test --- .../.idea.UnityProject/.idea/contentModel.xml | 12 +- .../.idea.UnityProject/.idea/workspace.xml | 1117 +++++++++-------- UnityProject/Assembly-CSharp-Editor.csproj | 1 + UnityProject/Assets/Editor/PdBackendEditor.cs | 4 +- .../Assets/Editor/PdSpectrumBindEditor.cs | 48 +- .../Assets/Editor/SpectrumGenerator.cs | 30 +- .../UnitTest/UnitTest_SpectrumGenerator.cs | 87 ++ .../UnitTest_SpectrumGenerator.cs.meta | 3 + UnityProject/Assets/Plugins/NSubstitute.XML | 259 ++++ .../Assets/Plugins/NSubstitute.XML.meta | 7 + UnityProject/Assets/Plugins/NSubstitute.dll | Bin 148480 -> 1021952 bytes .../PdBackendDemo/PdBackendDemo.unity | 10 +- .../Assets/Scripts/PdConnection/PdBackend.cs | 8 +- .../Assets/Scripts/PdConnection/PdConstant.cs | 3 - .../Assets/Scripts/PdConnection/PdProcess.cs | 15 +- .../UnityProject.sln.DotSettings.user | 3 + 16 files changed, 1018 insertions(+), 589 deletions(-) create mode 100644 UnityProject/Assets/Editor/UnitTest/UnitTest_SpectrumGenerator.cs create mode 100644 UnityProject/Assets/Editor/UnitTest/UnitTest_SpectrumGenerator.cs.meta create mode 100644 UnityProject/Assets/Plugins/NSubstitute.XML create mode 100644 UnityProject/Assets/Plugins/NSubstitute.XML.meta diff --git a/UnityProject/.idea/.idea.UnityProject/.idea/contentModel.xml b/UnityProject/.idea/.idea.UnityProject/.idea/contentModel.xml index 4f0f69e..55e7f86 100644 --- a/UnityProject/.idea/.idea.UnityProject/.idea/contentModel.xml +++ b/UnityProject/.idea/.idea.UnityProject/.idea/contentModel.xml @@ -15,7 +15,8 @@ - + + @@ -32,16 +33,17 @@ - - - + + - + + + diff --git a/UnityProject/.idea/.idea.UnityProject/.idea/workspace.xml b/UnityProject/.idea/.idea.UnityProject/.idea/workspace.xml index aa55cc0..f4a0d72 100644 --- a/UnityProject/.idea/.idea.UnityProject/.idea/workspace.xml +++ b/UnityProject/.idea/.idea.UnityProject/.idea/workspace.xml @@ -2,18 +2,19 @@ - - + + - - + - + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + serialize +