Assert default port constants so NBitcoin updates don't surprise us.
ADD
WalletWasabi.Tests/NBitcoinTests.cs
+using NBitcoin;
+using System;
+using System.Collections.Generic;
+using System.Text;
+using Xunit;
+
+namespace WalletWasabi.Tests
+{
+ public class NBitcoinTests
+ {
+ [Fact]
+ public void DefaultPortsMatch()
+ {
+ Assert.Equal(Helpers.Constants.DefaultMainNetBitcoinCoreRpcPort, Network.Main.RPCPort);
+ Assert.Equal(Helpers.Constants.DefaultTestNetBitcoinCoreRpcPort, Network.TestNet.RPCPort);
+ Assert.Equal(Helpers.Constants.DefaultRegTestBitcoinCoreRpcPort, Network.RegTest.RPCPort);
+ Assert.Equal(Helpers.Constants.DefaultMainNetBitcoinP2pPort, Network.Main.DefaultPort);
+ Assert.Equal(Helpers.Constants.DefaultTestNetBitcoinP2pPort, Network.TestNet.DefaultPort);
+ Assert.Equal(Helpers.Constants.DefaultRegTestBitcoinP2pPort, Network.RegTest.DefaultPort);
+ }
+ }
+}

MODIFY
azure-pipelines-linux.yml
azure-pipelines-linux.yml
@@ -18,4 +18,4 @@ jobs:
inputs:
command: test
projects: 'WalletWasabi.Tests/WalletWasabi.Tests.csproj'
- arguments: --configuration $(testConfiguration) --filter "CryptoTests | ExtPubKeyExplorerTests | KeyManagementTests | ModelTests | StoreTests | ParserTests"
+ arguments: --configuration $(testConfiguration) --filter "CryptoTests | ExtPubKeyExplorerTests | KeyManagementTests | ModelTests | StoreTests | ParserTests | NBitcoinTests"

MODIFY
azure-pipelines-osx.yml
azure-pipelines-osx.yml
@@ -18,4 +18,4 @@ jobs:
inputs:
command: test
projects: 'WalletWasabi.Tests/WalletWasabi.Tests.csproj'
- arguments: --configuration $(testConfiguration) --filter "CryptoTests | ExtPubKeyExplorerTests | KeyManagementTests | ModelTests | StoreTests | ParserTests"
+ arguments: --configuration $(testConfiguration) --filter "CryptoTests | ExtPubKeyExplorerTests | KeyManagementTests | ModelTests | StoreTests | ParserTests| NBitcoinTests"

MODIFY
azure-pipelines-windows.yml
azure-pipelines-windows.yml
@@ -18,4 +18,4 @@ jobs:
inputs:
command: test
projects: 'WalletWasabi.Tests/WalletWasabi.Tests.csproj'
- arguments: --configuration $(testConfiguration) --filter "CryptoTests | ExtPubKeyExplorerTests | KeyManagementTests | ModelTests | StoreTests | ParserTests"
+ arguments: --configuration $(testConfiguration) --filter "CryptoTests | ExtPubKeyExplorerTests | KeyManagementTests | ModelTests | StoreTests | ParserTests| NBitcoinTests"

Assert default port constants so NBitcoin updates don't surprise us.