From a824604dcf835e26f400a2f92c4fcc24817e125f Mon Sep 17 00:00:00 2001 From: alexiscatnip Date: Mon, 11 Jul 2022 22:48:53 +0800 Subject: [PATCH] ImagingTests: OneTimeSetUp + OneTimeTearDown --- Assets/Tests/Raindrop/ImagingTests/ImagingTests.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Assets/Tests/Raindrop/ImagingTests/ImagingTests.cs b/Assets/Tests/Raindrop/ImagingTests/ImagingTests.cs index 676824c..fada27d 100644 --- a/Assets/Tests/Raindrop/ImagingTests/ImagingTests.cs +++ b/Assets/Tests/Raindrop/ImagingTests/ImagingTests.cs @@ -18,13 +18,19 @@ namespace Tests.Raindrop public static string _inputImageSubPath = "test/menhara.jp2"; [OneTimeSetUp] - public void setup() + public void OneTimeSetUp() { BetterStreamingAssets.Initialize(); //fuck, this is easy to forget. instance = new RaindropInstance(new GridClient()); clientDir = instance.ClientDir; } + [OneTimeTearDown] + public void OneTimeTearDown() + { + instance.CleanUp(); + } + //can read the image data from path. [Test] public void readBytes_ImagePath()