From a84d6ec7d1a359a18d10dc2703d8cd7c82a19d95 Mon Sep 17 00:00:00 2001 From: Jimmy Date: Thu, 2 Feb 2023 16:18:50 -0500 Subject: [PATCH] update test key name (#2839) * update test key name * Change value too --------- Co-authored-by: Shargon --- tests/Neo.UnitTests/SmartContract/UT_KeyBuilder.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/Neo.UnitTests/SmartContract/UT_KeyBuilder.cs b/tests/Neo.UnitTests/SmartContract/UT_KeyBuilder.cs index 84caf06144..d03a411b4d 100644 --- a/tests/Neo.UnitTests/SmartContract/UT_KeyBuilder.cs +++ b/tests/Neo.UnitTests/SmartContract/UT_KeyBuilder.cs @@ -6,9 +6,9 @@ namespace Neo.UnitTests.SmartContract [TestClass] public class UT_KeyBuilder { - private struct A + private struct TestKey { - public int x; + public int Value; } [TestMethod] @@ -28,11 +28,11 @@ public void Test() Assert.AreEqual("010000000203040000000000000000000000000000000000000000", key.ToArray().ToHexString()); key = new KeyBuilder(1, 2); - key = key.Add(new A() { x = 123 }); + key = key.Add(new TestKey { Value = 123 }); Assert.AreEqual("01000000027b000000", key.ToArray().ToHexString()); key = new KeyBuilder(1, 0); - key = key.AddBigEndian(new A() { x = 1 }); + key = key.AddBigEndian(new TestKey { Value = 1 }); Assert.AreEqual("010000000000000001", key.ToArray().ToHexString()); } }