Пример #1
0
        public async Task RunScheduledTaskTest()
        {
            var actual = await ScheduledTasks.RunScheduledTask(ScheduledTasks.ComplianceUserMeasurements, true);

            var r = actual.Match(
                unit =>
            {
                Assert.IsTrue(true, "Success was not expected.");
                return("Success");
            },
                exception =>
            {
                Assert.IsFalse(true, "Failed with: " + exception.ToExceptionMessage());
                return("Fail");
            }
                );
        }