public void TestIsDefault() { JObject wallet = new(); wallet["name"] = "name"; wallet["version"] = new Version("1.0").ToString(); wallet["scrypt"] = new ScryptParameters(2, 1, 1).ToJson(); wallet["accounts"] = new JArray(); wallet["extra"] = new JObject(); var w = new NEP6Wallet(null, "", ProtocolSettings.Default, wallet); var ac = w.CreateAccount(); Assert.AreEqual(ac.Address, w.GetDefaultAccount().Address); var ac2 = w.CreateAccount(); Assert.AreEqual(ac.Address, w.GetDefaultAccount().Address); ac2.IsDefault = true; Assert.AreEqual(ac2.Address, w.GetDefaultAccount().Address); }