Legacy testing lib added..

This commit is contained in:
Oliver Hauff 2021-07-12 21:31:46 +02:00
parent 0167fc321f
commit 47ed05837e
118 changed files with 17505 additions and 0 deletions

View file

@ -0,0 +1,21 @@
using NUnit.Framework;
using System.Threading.Tasks;
using TINK.ViewModel;
namespace TestTINKLib.Fixtures.ObjectTests
{
[TestFixture]
public class TestPollingUpdateTask
{
[Test]
public void TestTerminateRepeated()
{
var l_oTaks = new PollingUpdateTask(() => "Test", async () => await Task.Delay(1000), new System.TimeSpan(0, 0, 2));
l_oTaks.Terminate().Wait();
// Verify that calling terminate twice does not lead to hang of call.
l_oTaks.Terminate().Wait();
}
}
}