@
Phase 0: Test-Fundament & Architektur-Doku - IBKRTrader.Tests (xUnit + NSubstitute + FluentAssertions), nur Unit-Tests - Repo-lokale NuGet.config: Test-Pakete in Allowlist ergaenzt - Hauptprojekt: Test-Unterordner aus SDK-Globbing ausgeschlossen - docs/ARCHITECTURE.md: Plan + Phasen-Checkliste - grundregeln.md: .NET 10, Launcher-Modell; DB-Passwort entfernt Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> @
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
using FluentAssertions;
|
||||
using IBKRTrader.Core.Settings;
|
||||
using IBKRTrader.Core.Workers;
|
||||
|
||||
namespace IBKRTrader.Tests;
|
||||
|
||||
/// <summary>
|
||||
/// Phase-0-Smoke-Test: bestätigt, dass die Test-Infrastruktur steht und die
|
||||
/// Referenz auf die Hauptassembly (IBKRTrader) kompiliert und lädt.
|
||||
/// </summary>
|
||||
[Trait("cat", "unit")]
|
||||
public class SmokeTests
|
||||
{
|
||||
[Fact]
|
||||
public void MainAssembly_IsReferenced_AndDefaultsLoad()
|
||||
{
|
||||
var settings = new AppSettings();
|
||||
|
||||
settings.Should().NotBeNull();
|
||||
settings.IBKR.Should().NotBeNull();
|
||||
settings.Logging.Level.Should().Be("Info");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void WorkerType_HasWorkerAndService()
|
||||
{
|
||||
Enum.GetNames<WorkerType>().Should().Contain(["Worker", "Service"]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user