This repository was archived by the owner on Jul 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathFrameworkTestScript.cs
More file actions
47 lines (42 loc) · 1.45 KB
/
Copy pathFrameworkTestScript.cs
File metadata and controls
47 lines (42 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
using System.Collections;
using System.Collections.Generic;
using NUnit.Framework;
using UnityEngine;
using UnityEngine.TestTools;
namespace Wanderer.GameFramework
{
public class FrameworkTestScript
{
[Test]
public void UtilityAESTestPasses()
{
string content = "测试zhang账号密码";
string key = "thanks,.........";
Log.Info($"加密信息: {content} 密钥: {key}");
string data = Utility.AESEncrypt(content, key,System.Security.Cryptography.CipherMode.CBC);
Log.Info($"加密后 {data}");
string newdata = Utility.AESDecrypt(data, key, System.Security.Cryptography.CipherMode.CBC);
Log.Info($"解密后 {newdata}");
}
//[Test]
//public void CacheTestPasses()
//{
// Log.Info($"缓存大小: {GameFrameworkMode.GetCacheSize()}");
//}
// A Test behaves as an ordinary method
[Test]
public void FrameworkTestScriptSimplePasses()
{
// Use the Assert class to test conditions
}
// A UnityTest behaves like a coroutine in Play Mode. In Edit Mode you can use
// `yield return null;` to skip a frame.
[UnityTest]
public IEnumerator FrameworkTestScriptWithEnumeratorPasses()
{
// Use the Assert class to test conditions.
// Use yield to skip a frame.
yield return null;
}
}
}