2022-09-05 15:31:02 -04:00
|
|
|
|
namespace Vanara.PInvoke.Tests;
|
2019-12-30 17:37:29 -05:00
|
|
|
|
|
2022-09-05 15:31:02 -04:00
|
|
|
|
internal partial class BackgroundCopyTests
|
2019-12-30 17:37:29 -05:00
|
|
|
|
{
|
2022-09-01 15:36:37 -04:00
|
|
|
|
[Test]
|
|
|
|
|
public void EnumJobTest()
|
2019-12-30 17:37:29 -05:00
|
|
|
|
{
|
2022-09-01 15:36:37 -04:00
|
|
|
|
var cnt = 0;
|
2019-12-30 17:37:29 -05:00
|
|
|
|
|
2022-09-01 15:36:37 -04:00
|
|
|
|
Assert.That(() => BackgroundCopyManager.Jobs.Count, Throws.Nothing);
|
2019-12-30 17:37:29 -05:00
|
|
|
|
|
2022-09-01 15:36:37 -04:00
|
|
|
|
Assert.That(cnt = BackgroundCopyManager.Jobs.Count, Is.GreaterThanOrEqualTo(0));
|
2019-12-30 17:37:29 -05:00
|
|
|
|
|
2022-09-01 15:36:37 -04:00
|
|
|
|
Assert.That(BackgroundCopyManager.Jobs.Count(), Is.EqualTo(cnt));
|
2019-12-30 17:37:29 -05:00
|
|
|
|
}
|
2022-09-05 15:31:02 -04:00
|
|
|
|
}
|