Skip to content

Commit

Permalink
Double check
Browse files Browse the repository at this point in the history
  • Loading branch information
lock9 committed Nov 18, 2019
1 parent e4501aa commit 18ac8fe
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions neo.UnitTests/SmartContract/Manifest/UT_ContractManifest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down

0 comments on commit 18ac8fe

Please sign in to comment.