Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bitcoin URL support #1949

merged 21 commits into from Jul 25, 2019
Changes from 1 commit
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.


Just for now

Add Assert.False to tests

  • Loading branch information...
molnard committed Jul 25, 2019
commit 7f4430916d196d9cb3719e33991d7740ee81976f
@@ -163,8 +163,8 @@ public void BitcoinAddressParserTests()
Assert.False(AddressStringParser.TryParseBitcoinAddress(test.address.Remove(5, 1),, out _));
Assert.False(AddressStringParser.TryParseBitcoinAddress(test.address.Insert(1, "b"),, out _));

AddressStringParser.TryParseBitcoinAddress(test.address, null, out _);
AddressStringParser.TryParseBitcoinAddress(null,, out _);
Assert.False(AddressStringParser.TryParseBitcoinAddress(test.address, null, out _));
Assert.False(AddressStringParser.TryParseBitcoinAddress(null,, out _));

Assert.True(AddressStringParser.TryParseBitcoinAddress(test.address,, out BitcoinUrlBuilder result));
Assert.Equal(test.address, result.Address.ToString());
@@ -194,8 +194,8 @@ public void BitcoinUrlParserTests()
Assert.False(AddressStringParser.TryParseBitcoinUrl(test.url.Remove(5, 4),, out _));
Assert.False(AddressStringParser.TryParseBitcoinUrl(test.url.Insert(1, "b"),, out _));

AddressStringParser.TryParseBitcoinUrl(test.url, null, out _);
AddressStringParser.TryParseBitcoinUrl(null,, out _);
Assert.False(AddressStringParser.TryParseBitcoinUrl(test.url, null, out _));
Assert.False(AddressStringParser.TryParseBitcoinUrl(null,, out _));

Assert.True(AddressStringParser.TryParseBitcoinUrl(test.url,, out BitcoinUrlBuilder result));
Assert.Equal(test.url.Split(new[] { ':', '?' })[1], result.Address.ToString());
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.