public void TestAddCount() { uut.CreateAccount(testScriptHash); Assert.IsTrue(uut.Contains(testScriptHash)); WalletAccount account = uut.GetAccount(testScriptHash); Assert.IsTrue(account.WatchOnly); Assert.IsFalse(account.HasKey); uut.CreateAccount(keyPair.PrivateKey); account = uut.GetAccount(testScriptHash); Assert.IsFalse(account.WatchOnly); Assert.IsTrue(account.HasKey); uut.CreateAccount(testScriptHash); account = uut.GetAccount(testScriptHash); Assert.IsFalse(account.WatchOnly); Assert.IsFalse(account.HasKey); uut.CreateAccount(keyPair.PrivateKey); account = uut.GetAccount(testScriptHash); Assert.IsFalse(account.WatchOnly); Assert.IsTrue(account.HasKey); }