remove conditional compilation
MODIFY
WalletWasabi.Tests/UnitTests/EventSourcing/InMemoryEventRepositoryTests.cs
WalletWasabi.Tests/UnitTests/EventSourcing/InMemoryEventRepositoryTests.cs
@@ -215,8 +215,6 @@ namespace WalletWasabi.Tests.UnitTests.EventSourcing
.SequenceEqual(new[] { "1" }));
}
-#if DEBUG
-
[Fact]
public async Task AppendEvents_CriticalSectionConflicts_Async()
{
@@ -254,10 +252,6 @@ namespace WalletWasabi.Tests.UnitTests.EventSourcing
.SequenceEqual(new[] { "1" }));
}
-#endif
-
-#if DEBUG
-
[Fact]
public async Task AppendEvents_CriticalAppendConflicts_Async()
{
@@ -296,10 +290,6 @@ namespace WalletWasabi.Tests.UnitTests.EventSourcing
.SequenceEqual(new[] { "1" }));
}
-#endif
-
-#if DEBUG
-
[Theory]
[InlineData(nameof(TestInMemoryEventRepository.ValidatedCallback))]
[InlineData(nameof(TestInMemoryEventRepository.AppendedCallback))]
@@ -342,8 +332,6 @@ namespace WalletWasabi.Tests.UnitTests.EventSourcing
Assert.True(result.SequenceEqual(expected));
}
-#endif
-
[Theory]
[InlineData(0, 1)]
[InlineData(0, 2)]

MODIFY
WalletWasabi/EventSourcing/InMemoryEventRepository.cs
WalletWasabi/EventSourcing/InMemoryEventRepository.cs
@@ -223,21 +223,21 @@ namespace WalletWasabi.EventSourcing
}
// Helper for parallel critical section testing in DEBUG build only.
- [Conditional("DEBUG")]
protected virtual void Validated()
{
+ // Keep empty. To be overriden in tests.
}
// Helper for parallel critical section testing in DEBUG build only.
- [Conditional("DEBUG")]
protected virtual void Conflicted()
{
+ // Keep empty. To be overriden in tests.
}
// Helper for parallel critical section testing in DEBUG build only.
- [Conditional("DEBUG")]
protected virtual void Appended()
{
+ // Keep empty. To be overriden in tests.
}
}
}

remove conditional compilation