catch (TypeInitializationException e)
{
if (isBluetoothAudioMediaSupported == false && isBluetoothAudioCallSupported == false
- && e.InnerException.GetType() == typeof(NotSupportedException))
- {
+ && e.InnerException.GetType() == typeof(NotSupportedException))
+ {
BluetoothHelper.DisplayLabel("Address_READ_ONLY");
await ManualTest.WaitForConfirm();
}
{
Assert.True(false, "Exception occurs. Msg : " + ex.ToString());
}
+ finally
+ {
+ if (audioProfile != null)
+ {
+ audioProfile.Disconnect(BluetoothAudioProfileType.All);
+ await Task.Delay(3000);
+ }
+ }
}
[Test]
catch (TypeInitializationException e)
{
if (isBluetoothAudioMediaSupported == false && isBluetoothAudioCallSupported == false
- && e.InnerException.GetType() == typeof(NotSupportedException))
- {
+ && e.InnerException.GetType() == typeof(NotSupportedException))
+ {
BluetoothHelper.DisplayLabel("IsConnected_READ_ONLY");
await ManualTest.WaitForConfirm();
}
{
Assert.True(false, "Exception occurs. Msg : " + ex.ToString());
}
+ finally
+ {
+ if (audioProfile != null)
+ {
+ audioProfile.Disconnect(BluetoothAudioProfileType.All);
+ await Task.Delay(3000);
+ }
+ }
}
[Test]
catch (TypeInitializationException e)
{
if (isBluetoothAudioMediaSupported == false && isBluetoothAudioCallSupported == false
- && e.InnerException.GetType() == typeof(NotSupportedException))
- {
+ && e.InnerException.GetType() == typeof(NotSupportedException))
+ {
BluetoothHelper.DisplayLabel("ProfileType_READ_ONLY");
await ManualTest.WaitForConfirm();
}
{
Assert.True(false, "Exception occurs. Msg : " + ex.ToString());
}
+ finally
+ {
+ if (audioProfile != null)
+ {
+ audioProfile.Disconnect(BluetoothAudioProfileType.All);
+ await Task.Delay(3000);
+ }
+ }
}
[Test]
catch (TypeInitializationException e)
{
if (isBluetoothAudioMediaSupported == false && isBluetoothAudioCallSupported == false
- && e.InnerException.GetType() == typeof(NotSupportedException))
- {
+ && e.InnerException.GetType() == typeof(NotSupportedException))
+ {
BluetoothHelper.DisplayLabel("Result_READ_ONLY");
await ManualTest.WaitForConfirm();
}
{
Assert.True(false, "Exception occurs. Msg : " + ex.ToString());
}
+ finally
+ {
+ if (audioProfile != null)
+ {
+ audioProfile.Disconnect(BluetoothAudioProfileType.All);
+ await Task.Delay(3000);
+ }
+ }
}
}
}
catch (TypeInitializationException e)
{
if (isBluetoothAudioMediaSupported == false && isBluetoothAudioCallSupported == false
- && e.InnerException.GetType() == typeof(NotSupportedException))
- {
+ && e.InnerException.GetType() == typeof(NotSupportedException))
+ {
BluetoothHelper.DisplayLabel("Connect_RETURN_CONNECT_PROFILE_ENUM_ALL");
await ManualTest.WaitForConfirm();
}
{
Assert.True(false, "Exception occurs. Msg : " + ex.ToString());
}
+ finally
+ {
+ if (audioProfile != null)
+ {
+ audioProfile.Disconnect(BluetoothAudioProfileType.All);
+ await Task.Delay(3000);
+ }
+ }
}
[Test]
catch (TypeInitializationException e)
{
if (isBluetoothAudioMediaSupported == false && isBluetoothAudioCallSupported == false
- && e.InnerException.GetType() == typeof(NotSupportedException))
- {
+ && e.InnerException.GetType() == typeof(NotSupportedException))
+ {
BluetoothHelper.DisplayLabel("Disconnect_RETURN_DISCONNECT_PROFILES_ENUM_ALL");
await ManualTest.WaitForConfirm();
}
catch (TypeInitializationException e)
{
if (isBluetoothAudioMediaSupported == false && isBluetoothAudioCallSupported == false
- && e.InnerException.GetType() == typeof(NotSupportedException))
- {
+ && e.InnerException.GetType() == typeof(NotSupportedException))
+ {
BluetoothHelper.DisplayLabel("AudioConnectionStateChanged_CHECK_EVENT_ENUM_ALL");
await ManualTest.WaitForConfirm();
}
{
Assert.True(false, "Exception occurs. Msg : " + ex.ToString());
}
+ finally
+ {
+ if (audioProfile != null)
+ {
+ audioProfile.Disconnect(BluetoothAudioProfileType.All);
+ await Task.Delay(3000);
+ }
+ }
}
// [Test]
catch (TypeInitializationException e)
{
if (isBluetoothAudioControlSupported == false && e.InnerException.GetType() == typeof(NotSupportedException))
- {
+ {
BluetoothHelper.DisplayLabel("TargetConnectionStateChanged_CHECK_EVENT");
await ManualTest.WaitForConfirm();
}
{
Assert.True(false, "Exception occurs. Msg : " + ex.ToString());
}
+ finally
+ {
+ if (audioProfile != null)
+ {
+ audioProfile.Disconnect(BluetoothAudioProfileType.All);
+ await Task.Delay(3000);
+ }
+ }
}
[Test]
catch (TypeInitializationException e)
{
if (isBluetoothAudioControlSupported == false && e.InnerException.GetType() == typeof(NotSupportedException))
- {
+ {
BluetoothHelper.DisplayLabel("ShuffleModeChanged_CHECK_EVENT");
await ManualTest.WaitForConfirm();
}
{
Assert.True(false, "Exception occurs. Msg : " + ex.ToString());
}
+ finally
+ {
+ if (audioProfile != null)
+ {
+ audioProfile.Disconnect(BluetoothAudioProfileType.All);
+ await Task.Delay(3000);
+ }
+ }
}
[Test]
{
Assert.True(false, "Exception occurs. Msg : " + ex.ToString());
}
+ finally
+ {
+ if (audioProfile != null)
+ {
+ audioProfile.Disconnect(BluetoothAudioProfileType.All);
+ await Task.Delay(3000);
+ }
+ }
}
[Test]
{
Assert.True(false, "Exception occurs. Msg : " + ex.ToString());
}
+ finally
+ {
+ if (audioProfile != null)
+ {
+ audioProfile.Disconnect(BluetoothAudioProfileType.All);
+ await Task.Delay(3000);
+ }
+ }
}
[Test]
{
Assert.True(false, "Exception occurs. Msg : " + ex.ToString());
}
+ finally
+ {
+ if (audioProfile != null)
+ {
+ audioProfile.Disconnect(BluetoothAudioProfileType.All);
+ await Task.Delay(3000);
+ }
+ }
}
[Test]
{
Assert.True(false, "Exception occurs. Msg : " + ex.ToString());
}
+ finally
+ {
+ if (audioProfile != null)
+ {
+ audioProfile.Disconnect(BluetoothAudioProfileType.All);
+ await Task.Delay(3000);
+ }
+ }
}
[Test]
{
Assert.True(false, "Exception occurs. Msg : " + ex.ToString());
}
+ finally
+ {
+ if (audioProfile != null)
+ {
+ audioProfile.Disconnect(BluetoothAudioProfileType.All);
+ await Task.Delay(3000);
+ }
+ }
}
[Test]
{
Assert.True(false, "Exception occurs. Msg : " + ex.ToString());
}
+ finally
+ {
+ if (audioProfile != null)
+ {
+ audioProfile.Disconnect(BluetoothAudioProfileType.All);
+ await Task.Delay(3000);
+ }
+ }
}
[Test]
catch (TypeInitializationException e)
{
if (isBluetoothAudioControlSupported == false && e.InnerException.GetType() == typeof(NotSupportedException))
- {
+ {
BluetoothHelper.DisplayLabel("RepeatModeChanged_CHECK_EVENT");
await ManualTest.WaitForConfirm();
}
{
Assert.True(false, "Exception occurs. Msg : " + ex.ToString());
}
+ finally
+ {
+ if (audioProfile != null)
+ {
+ audioProfile.Disconnect(BluetoothAudioProfileType.All);
+ await Task.Delay(3000);
+ }
+ }
}
[Test]
catch (TypeInitializationException e)
{
if (isBluetoothAudioControlSupported == false && e.InnerException.GetType() == typeof(NotSupportedException))
- {
+ {
BluetoothHelper.DisplayLabel("NotifyEqualizerState_RETURN_VALUE_NOTIFY");
await ManualTest.WaitForConfirm();
}
{
Assert.True(false, "Exception occurs. Msg : " + ex.ToString());
}
+ finally
+ {
+ if (audioProfile != null)
+ {
+ audioProfile.Disconnect(BluetoothAudioProfileType.All);
+ await Task.Delay(3000);
+ }
+ }
}
[Test]
catch (TypeInitializationException e)
{
if (isBluetoothAudioControlSupported == false && e.InnerException.GetType() == typeof(NotSupportedException))
- {
+ {
BluetoothHelper.DisplayLabel("NotifyRepeatMode_RETURN_VALUE_NOTIFY");
await ManualTest.WaitForConfirm();
}
{
Assert.True(false, "Exception occurs. Msg : " + ex.ToString());
}
+ finally
+ {
+ if (audioProfile != null)
+ {
+ audioProfile.Disconnect(BluetoothAudioProfileType.All);
+ await Task.Delay(3000);
+ }
+ }
}
[Test]
catch (TypeInitializationException e)
{
if (isBluetoothAudioControlSupported == false && e.InnerException.GetType() == typeof(NotSupportedException))
- {
+ {
BluetoothHelper.DisplayLabel("NotifyShuffleMode_RETURN_VALUE_NOTIFY");
await ManualTest.WaitForConfirm();
}
{
Assert.True(false, "Exception occurs. Msg : " + ex.ToString());
}
+ finally
+ {
+ if (audioProfile != null)
+ {
+ audioProfile.Disconnect(BluetoothAudioProfileType.All);
+ await Task.Delay(3000);
+ }
+ }
}
[Test]
catch (TypeInitializationException e)
{
if (isBluetoothAudioControlSupported == false && e.InnerException.GetType() == typeof(NotSupportedException))
- {
+ {
BluetoothHelper.DisplayLabel("NotifyScanMode_RETURN_VALUE_NOTIFY");
await ManualTest.WaitForConfirm();
}
{
Assert.True(false, "Exception occurs. Msg : " + ex.ToString());
}
+ finally
+ {
+ if (audioProfile != null)
+ {
+ audioProfile.Disconnect(BluetoothAudioProfileType.All);
+ await Task.Delay(3000);
+ }
+ }
}
[Test]
catch (TypeInitializationException e)
{
if (isBluetoothAudioControlSupported == false && e.InnerException.GetType() == typeof(NotSupportedException))
- {
+ {
BluetoothHelper.DisplayLabel("NotifyPlayerState_RETURN_VALUE_NOTIFY");
await ManualTest.WaitForConfirm();
}
{
Assert.True(false, "Exception occurs. Msg : " + ex.ToString());
}
+ finally
+ {
+ if (audioProfile != null)
+ {
+ audioProfile.Disconnect(BluetoothAudioProfileType.All);
+ await Task.Delay(3000);
+ }
+ }
}
[Test]
catch (TypeInitializationException e)
{
if (isBluetoothAudioControlSupported == false && e.InnerException.GetType() == typeof(NotSupportedException))
- {
+ {
BluetoothHelper.DisplayLabel("NotifyCurrentPosition_RETURN_VALUE_NOTIFY");
await ManualTest.WaitForConfirm();
}
{
Assert.True(false, "Exception occurs. Msg : " + ex.ToString());
}
+ finally
+ {
+ if (audioProfile != null)
+ {
+ audioProfile.Disconnect(BluetoothAudioProfileType.All);
+ await Task.Delay(3000);
+ }
+ }
}
[Test]
catch (TypeInitializationException e)
{
if (isBluetoothAudioControlSupported == false && e.InnerException.GetType() == typeof(NotSupportedException))
- {
+ {
BluetoothHelper.DisplayLabel("NotifyTrack_RETURN_VALUE_NOTIFY");
await ManualTest.WaitForConfirm();
}
{
Assert.True(false, "Exception occurs. Msg : " + ex.ToString());
}
+ finally
+ {
+ if (audioProfile != null)
+ {
+ audioProfile.Disconnect(BluetoothAudioProfileType.All);
+ await Task.Delay(3000);
+ }
+ }
}
}
}