public void MappAddress_Maps_PrimaryAddres() { mContractState.Setup(x => x.Message).Returns(new Message(contractAddress, primaryAddress, 0)); var contract = new AddressMapper(mContractState.Object, ownerAddress); contract.MapAddress(secondaryAddress); Assert.Equal(new MappingInfo { Primary = primaryAddress, Status = (int)Status.Pending }, state.GetStruct <MappingInfo>($"MappingInfo:{secondaryAddress}")); }