Change-Id: I1ec105106f264d42a2e68e3d6f91ef69bc627161
Signed-off-by: Haesu Gwon <haesu.gwon@samsung.com>
[Description("Tests Tizen.Multimedia.Radio class")]
public class RadioTests : TestBase
{
- private static int _radioScanMaxTime = 10000;
-
[Test]
[Category("P1")]
[Description("Test Radio Constructor - Object should not be null after initializing")]
Radio2.Start();
- RadioInterruptedEventArgs args = await eventAwaiter.GetResultAsync();
+ RadioInterruptedEventArgs args = await eventAwaiter.GetResultAsync(_radioScanMaxTime);
Assert.That(args.Reason, Is.EqualTo(RadioInterruptedReason.ResourceConflict));
}
Radio.ScanUpdated += eventAwaiter;
Radio.StartScan();
- ScanUpdatedEventArgs args = await eventAwaiter.GetResultAsync();
+ ScanUpdatedEventArgs args = await eventAwaiter.GetResultAsync(_radioScanMaxTime);
Assert.That(args.Frequency,
Is.GreaterThanOrEqualTo(87500).And.LessThanOrEqualTo(108000));
protected Radio Radio { get; private set; }
protected Radio Radio2 { get; private set; }
+ protected static readonly int _radioScanMaxTime = 10000; // 10sec
+
[SetUp]
public void SetUpBase()
{