移除不必要的对NUnit.Framework的引用
parent
3bcf204f69
commit
d4133f1e8a
|
@ -1,5 +1,4 @@
|
||||||
using NUnit.Framework;
|
using Obfuz.Utils;
|
||||||
using Obfuz.Utils;
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace Obfuz.EncryptionVM.Instructions
|
namespace Obfuz.EncryptionVM.Instructions
|
||||||
|
@ -21,7 +20,7 @@ namespace Obfuz.EncryptionVM.Instructions
|
||||||
private void Verify()
|
private void Verify()
|
||||||
{
|
{
|
||||||
int a = 1122334;
|
int a = 1122334;
|
||||||
Assert.AreEqual(a, a * _multiValue * _revertMultiValue);
|
UnityEngine.Assertions.Assert.AreEqual(a, a * _multiValue * _revertMultiValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
public override int Encrypt(int value, int[] secretKey, int salt)
|
public override int Encrypt(int value, int[] secretKey, int salt)
|
||||||
|
|
|
@ -1,9 +1,5 @@
|
||||||
using dnlib.DotNet;
|
using Obfuz.Utils;
|
||||||
using NUnit.Framework;
|
|
||||||
using Obfuz.Settings;
|
|
||||||
using Obfuz.Utils;
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections;
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,5 @@
|
||||||
using dnlib.DotNet;
|
using Obfuz.Utils;
|
||||||
using NUnit.Framework;
|
|
||||||
using Obfuz.Settings;
|
|
||||||
using Obfuz.Utils;
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections;
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
using dnlib.DotNet;
|
using dnlib.DotNet;
|
||||||
using dnlib.DotNet.Emit;
|
using dnlib.DotNet.Emit;
|
||||||
using NUnit.Framework;
|
|
||||||
using Obfuz.Data;
|
using Obfuz.Data;
|
||||||
using Obfuz.Emit;
|
using Obfuz.Emit;
|
||||||
using Obfuz.Settings;
|
using Obfuz.Settings;
|
||||||
|
@ -221,7 +220,7 @@ namespace Obfuz.ObfusPasses.CallObfus
|
||||||
ins.Add(Instruction.Create(OpCodes.Ldnull));
|
ins.Add(Instruction.Create(OpCodes.Ldnull));
|
||||||
ins.Add(Instruction.Create(OpCodes.Ldftn, ci.proxyMethod));
|
ins.Add(Instruction.Create(OpCodes.Ldftn, ci.proxyMethod));
|
||||||
MethodDef ctor = ci.delegateType.FindMethod(".ctor");
|
MethodDef ctor = ci.delegateType.FindMethod(".ctor");
|
||||||
Assert.NotNull(ctor, $"Delegate type {ci.delegateType.FullName} does not have a constructor.");
|
UnityEngine.Assertions.Assert.IsNotNull(ctor, $"Delegate type {ci.delegateType.FullName} does not have a constructor.");
|
||||||
ins.Add(Instruction.Create(OpCodes.Newobj, ctor));
|
ins.Add(Instruction.Create(OpCodes.Newobj, ctor));
|
||||||
ins.Add(Instruction.Create(OpCodes.Stelem_Ref));
|
ins.Add(Instruction.Create(OpCodes.Stelem_Ref));
|
||||||
++index;
|
++index;
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
using dnlib.DotNet;
|
using dnlib.DotNet;
|
||||||
using dnlib.DotNet.Emit;
|
using dnlib.DotNet.Emit;
|
||||||
using NUnit.Framework;
|
|
||||||
using Obfuz.Data;
|
using Obfuz.Data;
|
||||||
using Obfuz.Emit;
|
using Obfuz.Emit;
|
||||||
using Obfuz.Settings;
|
using Obfuz.Settings;
|
||||||
using Obfuz.Utils;
|
using Obfuz.Utils;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
using UnityEngine.Assertions;
|
||||||
|
|
||||||
namespace Obfuz.ObfusPasses.ConstEncrypt
|
namespace Obfuz.ObfusPasses.ConstEncrypt
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
using dnlib.DotNet;
|
using dnlib.DotNet;
|
||||||
using NUnit.Framework;
|
|
||||||
using Obfuz.Utils;
|
using Obfuz.Utils;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
@ -7,6 +6,7 @@ using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Xml;
|
using System.Xml;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
using UnityEngine.Assertions;
|
||||||
|
|
||||||
namespace Obfuz.ObfusPasses.SymbolObfus
|
namespace Obfuz.ObfusPasses.SymbolObfus
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
using dnlib.DotNet;
|
using dnlib.DotNet;
|
||||||
using NUnit.Framework;
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace Obfuz.Utils
|
namespace Obfuz.Utils
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
using NUnit.Framework;
|
using System;
|
||||||
using System;
|
|
||||||
|
|
||||||
namespace Obfuz.Utils
|
namespace Obfuz.Utils
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue