From db0b0f061f32ccb27407cf7afde2112f0aeff38f Mon Sep 17 00:00:00 2001 From: Irvin Date: Wed, 11 Dec 2024 20:07:37 +0700 Subject: [PATCH] Update ZKLogin tests. #119 --- .../Sui-Unity-SDK/Tests/ZKLogin/NonceTest.cs | 8 +++--- .../Sui-Unity-SDK/Tests/ZKLogin/UtilsTest.cs | 27 +++++++++++++++++++ .../Tests/ZKLogin/UtilsTest.cs.meta | 2 ++ 3 files changed, 34 insertions(+), 3 deletions(-) create mode 100644 Assets/Sui-Unity-SDK/Tests/ZKLogin/UtilsTest.cs create mode 100644 Assets/Sui-Unity-SDK/Tests/ZKLogin/UtilsTest.cs.meta diff --git a/Assets/Sui-Unity-SDK/Tests/ZKLogin/NonceTest.cs b/Assets/Sui-Unity-SDK/Tests/ZKLogin/NonceTest.cs index 3fd64cf..845866e 100644 --- a/Assets/Sui-Unity-SDK/Tests/ZKLogin/NonceTest.cs +++ b/Assets/Sui-Unity-SDK/Tests/ZKLogin/NonceTest.cs @@ -1,3 +1,4 @@ +using System; using System.Numerics; using NUnit.Framework; using Sui.Cryptography.Ed25519; @@ -45,9 +46,10 @@ public void GenerateNonceTest() [Test] public void ToBigIntBETest() { - byte[] bytes = { }; - BigInteger toBigintBE = NonceGenerator.ToBigIntBE(bytes); - Assert.AreEqual(null, bytes, "BigInteger Valye: " + "[IMPLEMENT]"); + //byte[] bytes = { }; + //BigInteger toBigintBE = NonceGenerator.ToBigIntBE(bytes); + //Assert.AreEqual(null, bytes, "BigInteger Valye: " + "[IMPLEMENT]"); + throw new NotImplementedException(); } } } \ No newline at end of file diff --git a/Assets/Sui-Unity-SDK/Tests/ZKLogin/UtilsTest.cs b/Assets/Sui-Unity-SDK/Tests/ZKLogin/UtilsTest.cs new file mode 100644 index 0000000..c8396e6 --- /dev/null +++ b/Assets/Sui-Unity-SDK/Tests/ZKLogin/UtilsTest.cs @@ -0,0 +1,27 @@ +using System; +using NUnit.Framework; +using UnityEngine; + +namespace Sui.Tests.ZkLogin +{ + public class UtilsTest + { + [Test] + public void FindFirstNonZeroIndexTest() + { + throw new NotImplementedException(); + } + + [Test] + public void ToPaddedBigEndianBytesTest() + { + throw new NotImplementedException(); + } + + [Test] + public void ToBigEndianBytesTest() + { + throw new NotImplementedException(); + } + } +} \ No newline at end of file diff --git a/Assets/Sui-Unity-SDK/Tests/ZKLogin/UtilsTest.cs.meta b/Assets/Sui-Unity-SDK/Tests/ZKLogin/UtilsTest.cs.meta new file mode 100644 index 0000000..146d2c3 --- /dev/null +++ b/Assets/Sui-Unity-SDK/Tests/ZKLogin/UtilsTest.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: e53a985cc392348649cc6d29c103585d \ No newline at end of file