diff --git a/src/MonoTorrent.Tests/Client/ClientEngineTests.cs b/src/MonoTorrent.Tests/Client/ClientEngineTests.cs index 164f9ac2a..8956ff36b 100644 --- a/src/MonoTorrent.Tests/Client/ClientEngineTests.cs +++ b/src/MonoTorrent.Tests/Client/ClientEngineTests.cs @@ -209,6 +209,15 @@ public void DownloadMetadata_Cancelled () Assert.ThrowsAsync (() => task); } + [Test] + public void DownloadMagnetLink_SameTwice () + { + var link = MagnetLink.Parse ("magnet:?xt=urn:btih:1234512345123451234512345123451234512345"); + using var engine = new ClientEngine (EngineSettingsBuilder.CreateForTests ()); + var first = engine.AddAsync (link, ""); + Assert.ThrowsAsync (() => engine.AddAsync (link, "")); + } + [Test] public void DownloadMetadata_SameTwice () {