generated from RageAgainstThePixel/upm-template
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- com.utilities.async -> 2.1.7 - com.utilities.extensions -> 1.1.16 - Added `DownloadCacheDirectory` Tests and clarified usage in docs
- Loading branch information
1 parent
391d6d6
commit 651bbf1
Showing
9 changed files
with
119 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// Licensed under the MIT License. See LICENSE in the project root for license information. | ||
|
||
using NUnit.Framework; | ||
using System.IO; | ||
using UnityEngine; | ||
|
||
namespace Utilities.WebRequestRest.Tests | ||
{ | ||
public class TestFixture_01_DownloadCache | ||
{ | ||
[Test] | ||
public void TestFixture_01_DownloadCache_Locations() | ||
{ | ||
Debug.Log(Rest.DownloadLocation); | ||
Debug.Log(Rest.DownloadCacheDirectory); | ||
Assert.IsTrue(Rest.DownloadLocation == Application.temporaryCachePath); | ||
Assert.IsTrue(Directory.Exists(Rest.DownloadCacheDirectory)); | ||
|
||
Rest.DownloadLocation = Application.persistentDataPath; | ||
Debug.Log(Rest.DownloadLocation); | ||
Debug.Log(Rest.DownloadCacheDirectory); | ||
Assert.IsTrue(Rest.DownloadLocation == Application.persistentDataPath); | ||
Assert.IsTrue(Directory.Exists(Rest.DownloadCacheDirectory)); | ||
|
||
Rest.DownloadLocation = Application.dataPath; | ||
Debug.Log(Rest.DownloadLocation); | ||
Debug.Log(Rest.DownloadCacheDirectory); | ||
Assert.IsTrue(Rest.DownloadLocation == Application.dataPath); | ||
Assert.IsTrue(Directory.Exists(Rest.DownloadCacheDirectory)); | ||
|
||
Rest.DownloadLocation = Application.streamingAssetsPath; | ||
Debug.Log(Rest.DownloadLocation); | ||
Debug.Log(Rest.DownloadCacheDirectory); | ||
Assert.IsTrue(Rest.DownloadLocation == Application.streamingAssetsPath); | ||
Assert.IsTrue(Directory.Exists(Rest.DownloadCacheDirectory)); | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"name": "Utilities.Rest.Tests", | ||
"rootNamespace": "Utilities.WebRequest.Tests", | ||
"references": [ | ||
"GUID:27619889b8ba8c24980f49ee34dbb44a", | ||
"GUID:0acc523941302664db1f4e527237feb3", | ||
"GUID:7958db66189566541a6363568aee1575", | ||
"GUID:28b599e4adde9c94a9b9667d7b08fe83" | ||
], | ||
"includePlatforms": [ | ||
"Editor" | ||
], | ||
"excludePlatforms": [], | ||
"allowUnsafeCode": false, | ||
"overrideReferences": true, | ||
"precompiledReferences": [ | ||
"nunit.framework.dll" | ||
], | ||
"autoReferenced": false, | ||
"defineConstraints": [ | ||
"UNITY_INCLUDE_TESTS" | ||
], | ||
"versionDefines": [], | ||
"noEngineReferences": false | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters