移除不必要的对NUnit.Framework的引用

main
walon 2025-07-23 19:34:42 +08:00
parent 3bcf204f69
commit d4133f1e8a
8 changed files with 8 additions and 20 deletions

View File

@ -1,5 +1,4 @@
using NUnit.Framework;
using Obfuz.Utils;
using Obfuz.Utils;
using System.Collections.Generic;
namespace Obfuz.EncryptionVM.Instructions
@ -21,7 +20,7 @@ namespace Obfuz.EncryptionVM.Instructions
private void Verify()
{
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)

View File

@ -1,9 +1,5 @@
using dnlib.DotNet;
using NUnit.Framework;
using Obfuz.Settings;
using Obfuz.Utils;
using Obfuz.Utils;
using System;
using System.Collections;
using System.Linq;
using System.Text;

View File

@ -1,9 +1,5 @@
using dnlib.DotNet;
using NUnit.Framework;
using Obfuz.Settings;
using Obfuz.Utils;
using Obfuz.Utils;
using System;
using System.Collections;
using System.Linq;
using System.Text;

View File

@ -1,6 +1,5 @@
using dnlib.DotNet;
using dnlib.DotNet.Emit;
using NUnit.Framework;
using Obfuz.Data;
using Obfuz.Emit;
using Obfuz.Settings;
@ -221,7 +220,7 @@ namespace Obfuz.ObfusPasses.CallObfus
ins.Add(Instruction.Create(OpCodes.Ldnull));
ins.Add(Instruction.Create(OpCodes.Ldftn, ci.proxyMethod));
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.Stelem_Ref));
++index;

View File

@ -1,12 +1,12 @@
using dnlib.DotNet;
using dnlib.DotNet.Emit;
using NUnit.Framework;
using Obfuz.Data;
using Obfuz.Emit;
using Obfuz.Settings;
using Obfuz.Utils;
using System.Collections.Generic;
using System.Text;
using UnityEngine.Assertions;
namespace Obfuz.ObfusPasses.ConstEncrypt
{

View File

@ -1,5 +1,4 @@
using dnlib.DotNet;
using NUnit.Framework;
using Obfuz.Utils;
using System;
using System.Collections.Generic;
@ -7,6 +6,7 @@ using System.IO;
using System.Linq;
using System.Xml;
using UnityEngine;
using UnityEngine.Assertions;
namespace Obfuz.ObfusPasses.SymbolObfus
{

View File

@ -1,5 +1,4 @@
using dnlib.DotNet;
using NUnit.Framework;
using System.Collections.Generic;
namespace Obfuz.Utils

View File

@ -1,5 +1,4 @@
using NUnit.Framework;
using System;
using System;
namespace Obfuz.Utils
{