From d3f2395e4151eb3d3a20d4d98ba572284b5bc5c7 Mon Sep 17 00:00:00 2001 From: alexiscatnip Date: Wed, 3 Aug 2022 00:44:29 +0800 Subject: [PATCH] test: add RD_Eula.txt file to the copier test --- Assets/Tests/Raindrop/DiskAndCache/DiskTests.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Assets/Tests/Raindrop/DiskAndCache/DiskTests.cs b/Assets/Tests/Raindrop/DiskAndCache/DiskTests.cs index 4b27135..a5dcafa 100644 --- a/Assets/Tests/Raindrop/DiskAndCache/DiskTests.cs +++ b/Assets/Tests/Raindrop/DiskAndCache/DiskTests.cs @@ -57,6 +57,14 @@ namespace Raindrop.Tests.DiskAndCache Assert.False(File.Exists(GridsXmlFile), "delete grids.xml failed : " + GridsXmlFile); + //1b. delete EULA file + string EulaFile = Path.Combine( + DirectoryHelpers.GetInternalStorageDir(), + "RD_Eula.txt"); + File.Delete(EulaFile); + Assert.False(File.Exists(EulaFile), + "delete RD_Eula.txt failed : " + EulaFile); + //2. do the startup copy. LMV_ExtendedTests.Helpers.DoStartupCopy(); @@ -64,6 +72,10 @@ namespace Raindrop.Tests.DiskAndCache Assert.True(File.Exists(GridsXmlFile), "failed to copy grids.xml from Streaming assets to this location: " + GridsXmlFile); + //3b. RD_Eula.txt is expected to be copied + Assert.True(File.Exists(EulaFile), + "failed to copy RD_Eula.txt from Streaming assets to this location: " + EulaFile); + yield break; }