From 18ac8fe6184022fd365e876e6f42b19c4663e901 Mon Sep 17 00:00:00 2001 From: Ricardo Date: Fri, 15 Nov 2019 06:46:47 -0300 Subject: [PATCH] Double check --- .../SmartContract/Manifest/UT_ContractManifest.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/neo.UnitTests/SmartContract/Manifest/UT_ContractManifest.cs b/neo.UnitTests/SmartContract/Manifest/UT_ContractManifest.cs index 8be7163aaf9..647fd561ce1 100644 --- a/neo.UnitTests/SmartContract/Manifest/UT_ContractManifest.cs +++ b/neo.UnitTests/SmartContract/Manifest/UT_ContractManifest.cs @@ -87,18 +87,17 @@ public void ParseFromJson_Groups() } [TestMethod] - public void ParseFromJson_Details() + public void ParseFromJson_Contacts() { var json = @"{""groups"":[],""features"":{""storage"":false,""payable"":false},""abi"":{""hash"":""0x0000000000000000000000000000000000000000"",""entryPoint"":{""name"":""Main"",""parameters"":[{""name"":""operation"",""type"":""String""},{""name"":""args"",""type"":""Array""}],""returnType"":""Any""},""methods"":[],""events"":[]},""permissions"":[{""contract"":""*"",""methods"":""*""}],""trusts"":[],""safeMethods"":[],""contact"":{""author"":""author"",""email"":""email""}}"; var manifest = ContractManifest.Parse(json); var manifestString = manifest.ToString(); Assert.AreEqual(manifestString, json); - + Assert.AreEqual("author", manifest.Contact.Author); + Assert.AreEqual("email", manifest.Contact.Email); } - - [TestMethod] public void TestDeserializeAndSerialize() {