public void HasNeededServicesTest(NodeServiceFlags flags, BlockchainState state, bool expected) { var cs = new ClientSettings(); Helper.SetReadonlyProperty(cs, nameof(cs.Blockchain), new MockBlockchain() { _stateToReturn = state }); bool actual = cs.HasNeededServices(flags); Assert.Equal(expected, actual); }