@@ -850,7 +850,7 @@ private static void CanCreatePSBTCore(ServerTester tester, ScriptPubKeyType type
850
850
} ) ;
851
851
Assert . Equal ( 3 , psbt2 . PSBT . Outputs . Count ) ;
852
852
Assert . Equal ( 2 , psbt2 . PSBT . Outputs . Where ( o => o . HDKeyPaths . Any ( ) ) . Count ( ) ) ;
853
- Assert . Single ( psbt2 . PSBT . Outputs . Where ( o => o . HDKeyPaths . Any ( h => h . Value . KeyPath == newAddress . KeyPath ) ) ) ;
853
+ Assert . Single ( psbt2 . PSBT . Outputs , o => o . HDKeyPaths . Any ( h => h . Value . KeyPath == newAddress . KeyPath ) ) ;
854
854
foreach ( var input in psbt2 . PSBT . GetGlobalTransaction ( ) . Inputs )
855
855
{
856
856
Assert . Equal ( Sequence . Final , input . Sequence ) ;
@@ -915,7 +915,7 @@ private static void CanCreatePSBTCore(ServerTester tester, ScriptPubKeyType type
915
915
916
916
Assert . Equal ( 3 , psbt2 . PSBT . Outputs . Count ) ;
917
917
Assert . Equal ( 2 , psbt2 . PSBT . Outputs . Where ( o => o . HDKeyPaths . Any ( ) ) . Count ( ) ) ;
918
- var selfchange = Assert . Single ( psbt2 . PSBT . Outputs . Where ( o => o . HDKeyPaths . Any ( h => h . Key . GetAddress ( type , tester . Network ) . ScriptPubKey == newAddress . ScriptPubKey ) ) ) ;
918
+ var selfchange = Assert . Single ( psbt2 . PSBT . Outputs , o => o . HDKeyPaths . Any ( h => h . Key . GetAddress ( type , tester . Network ) . ScriptPubKey == newAddress . ScriptPubKey ) ) ;
919
919
Assert . All ( psbt2 . PSBT . Inputs . Concat < PSBTCoin > ( new [ ] { selfchange } ) . SelectMany ( i => i . HDKeyPaths ) , i =>
920
920
{
921
921
Assert . Equal ( rootHD , i . Value . MasterFingerprint ) ;
@@ -1151,8 +1151,7 @@ public async Task ShowRBFedTransaction4()
1151
1151
// Make sure there is no dups events on unconf txs
1152
1152
await Task . Delay ( 100 ) ;
1153
1153
var evts = await tester . Client . CreateLongPollingNotificationSession ( ) . GetEventsAsync ( ) ;
1154
- Assert . Single ( evts . OfType < NewTransactionEvent > ( )
1155
- . Where ( t => t . BlockId is null && t . TransactionData . TransactionHash == bp . GetHash ( ) ) ) ;
1154
+ Assert . Single ( evts . OfType < NewTransactionEvent > ( ) , t => t . BlockId is null && t . TransactionData . TransactionHash == bp . GetHash ( ) ) ;
1156
1155
}
1157
1156
1158
1157
[ TheoryWithTimeout ]
@@ -3941,7 +3940,7 @@ public async Task ElementsTests()
3941
3940
3942
3941
var txInfos = tester . Client . GetTransactions ( userDerivationScheme ) . UnconfirmedTransactions . Transactions ;
3943
3942
var assetMoney2 = Assert . IsType < AssetMoney > ( Assert . Single ( Assert . IsType < MoneyBag > ( txInfos [ 1 ] . BalanceChange ) ) ) ;
3944
- Assert . Empty ( Assert . IsType < MoneyBag > ( txInfos [ 0 ] . BalanceChange ) . Where ( m => ! m . IsUnknown ( ) ) ) ;
3943
+ Assert . DoesNotContain ( Assert . IsType < MoneyBag > ( txInfos [ 0 ] . BalanceChange ) , m => ! m . IsUnknown ( ) ) ;
3945
3944
3946
3945
Assert . Equal ( assetMoney , assetMoney2 ) ;
3947
3946
0 commit comments