public async Task ValidateRemovingNewReportingAgent() { var txParams = new TransactionParams { From = Accounts[0] }; // admin var txHash = await _contract.registerPriceAgent(Accounts[2]).SendTransaction(txParams); var txHash2 = await _contract.removePriceAgent(Accounts[2]).SendTransaction(txParams); //validate num of price agents var numberOfRegisteredPriceAgents = await _contract.numberOfRegisteredPriceAgents().Call(); Assert.AreEqual(1, numberOfRegisteredPriceAgents); //validate total price (should not have changed from init) var totalBtcPriceUSDCents = await _contract.getPrice().Call(); Assert.AreEqual(initPrice, totalBtcPriceUSDCents); //validate that address of added agent should not be present var newPriceAgentAddress = await _contract.getRegisteredPriceAgent(1).Call(); Assert.AreEqual("0x0000000000000000000000000000000000000000", newPriceAgentAddress); }