Correct file format
MODIFY
WalletWasabi.Tests/TransactionProcessorTests.cs
WalletWasabi.Tests/TransactionProcessorTests.cs
@@ -25,7 +25,6 @@ namespace WalletWasabi.Tests
Assert.Empty(transactionProcessor.TransactionCache);
}
-
[Fact]
public void SpendToLegacyScripts()
{
@@ -40,7 +39,6 @@ namespace WalletWasabi.Tests
Assert.Empty(transactionProcessor.Coins);
}
-
[Fact]
public void UnconfirmedTransactionIsNotSegWit()
{
@@ -56,7 +54,6 @@ namespace WalletWasabi.Tests
Assert.Empty(transactionProcessor.TransactionCache);
}
-
[Fact]
public void ConfirmedTransactionIsNotSegWit()
{
@@ -74,7 +71,6 @@ namespace WalletWasabi.Tests
Assert.Empty(transactionProcessor.TransactionHashes);
}
-
[Fact]
public void UpdateTransactionHeightAfterConfirmation()
{
@@ -107,7 +103,6 @@ namespace WalletWasabi.Tests
Assert.Empty(transactionProcessor.TransactionHashes);
}
-
[Fact]
public void IgnoreDoubleSpend()
{
@@ -124,7 +119,7 @@ namespace WalletWasabi.Tests
tx = CreateSpendingTransaction(createdCoin, keys[1].PubKey.WitHash.ScriptPubKey);
transactionProcessor.Process(tx);
- // Spend it coin
+ // Spend the same coin again
tx = CreateSpendingTransaction(createdCoin, keys[2].PubKey.WitHash.ScriptPubKey);
var relevant = transactionProcessor.Process(tx);
@@ -135,7 +130,6 @@ namespace WalletWasabi.Tests
Assert.Empty(transactionProcessor.TransactionHashes);
}
-
[Fact]
public void ConfirmedDoubleSpend()
{
@@ -162,7 +156,6 @@ namespace WalletWasabi.Tests
Assert.Empty(transactionProcessor.TransactionHashes);
}
-
[Fact]
public void HandlesRBF()
{
@@ -192,7 +185,6 @@ namespace WalletWasabi.Tests
Assert.Empty(transactionProcessor.TransactionHashes);
}
-
[Fact]
public void ReceiveTransactionForWallet()
{
@@ -212,7 +204,6 @@ namespace WalletWasabi.Tests
Assert.NotNull(receivedCoin);
}
-
[Fact]
public void SpendCoin()
{
@@ -235,13 +226,12 @@ namespace WalletWasabi.Tests
Assert.Equal(coin, spentCoin);
}
-
[Fact]
public void ReceiveTransactionWithDustForWallet()
{
var transactionProcessor = CreateTransactionProcessor();
transactionProcessor.CoinReceived += (s, theCoin)
- => throw new Exception("The dust coin raised event when it shouldn't");
+ => throw new Exception("The dust coin raised an event when it shouldn't.");
var keys = transactionProcessor.KeyManager.GetKeys();
var tx = CreateCreditingTransaction(keys.First().P2wpkhScript, Money.Coins(0.000099m));
@@ -252,9 +242,8 @@ namespace WalletWasabi.Tests
Assert.Empty(transactionProcessor.Coins);
}
-
[Fact]
- public void ReceiveCoinjoinTransaction()
+ public void ReceiveCoinJoinTransaction()
{
var transactionProcessor = CreateTransactionProcessor();
var keys = transactionProcessor.KeyManager.GetKeys();
@@ -279,9 +268,8 @@ namespace WalletWasabi.Tests
Assert.False(coin.IsLikelyCoinJoinOutput); // It is a coinjoin however we are reveiving but not spending.
}
-
[Fact]
- public void ReceiveWasabiCoinjoinTransaction()
+ public void ReceiveWasabiCoinJoinTransaction()
{
var transactionProcessor = CreateTransactionProcessor();
var keys = transactionProcessor.KeyManager.GetKeys();
@@ -311,7 +299,6 @@ namespace WalletWasabi.Tests
Assert.True(coin.IsLikelyCoinJoinOutput); // because we are spanding and receiving almost the same amount
}
-
private static TransactionProcessor CreateTransactionProcessor()
{
var keyManager = KeyManager.CreateNew(out _, "password");
@@ -323,7 +310,6 @@ namespace WalletWasabi.Tests
Money.Coins(0.0001m));
}
-
private static SmartTransaction CreateSpendingTransaction(Coin coin, Script scriptPubKey = null, bool isConfirmed = false)
{
var tx = Network.RegTest.CreateTransaction();
@@ -341,7 +327,6 @@ namespace WalletWasabi.Tests
tx.Outputs.Add(amount, scriptPubKey);
return new SmartTransaction(tx, isConfirmed ? new Height(9999) : Height.Mempool);
}
-
private static OutPoint GetRandomOutPoint()
{
return new OutPoint(RandomUtils.GetUInt256(), 0);

Correct file format