Public Access
Archive completed meeting assistant changes
PR and Push Build/Test / build-and-test (push) Successful in 9m19s
PR and Push Build/Test / build-and-test (push) Successful in 9m19s
This commit is contained in:
@@ -31,6 +31,34 @@ public sealed class TaskbarIconTests
|
||||
Assert.DoesNotContain(menu.Items, item => item.Action == MeetingTaskbarAction.AbortRecording);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void MenuOffersMicrophoneSubmenuWithEffectiveDeviceChecked()
|
||||
{
|
||||
var menu = MeetingTaskbarMenuBuilder.Build(
|
||||
Status(),
|
||||
[Profile("default")],
|
||||
[
|
||||
new MicrophoneDevice("integrated", "integrated microphone"),
|
||||
new MicrophoneDevice("other", "other microphone")
|
||||
],
|
||||
"integrated");
|
||||
|
||||
var microphoneMenu = Assert.Single(menu.Items, item => item.Text == "Microphone");
|
||||
|
||||
Assert.Equal(MeetingTaskbarAction.OpenSubmenu, microphoneMenu.Action);
|
||||
Assert.NotNull(microphoneMenu.Items);
|
||||
Assert.Contains(microphoneMenu.Items, item =>
|
||||
item.Action == MeetingTaskbarAction.SelectMicrophone &&
|
||||
item.MicrophoneDeviceId == "integrated" &&
|
||||
item.Text == "integrated microphone" &&
|
||||
item.IsChecked);
|
||||
Assert.Contains(microphoneMenu.Items, item =>
|
||||
item.Action == MeetingTaskbarAction.SelectMicrophone &&
|
||||
item.MicrophoneDeviceId == "other" &&
|
||||
item.Text == "other microphone" &&
|
||||
!item.IsChecked);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void RecordingMenuOffersStopAbortAndOtherProfileSwitches()
|
||||
{
|
||||
@@ -108,7 +136,7 @@ public sealed class TaskbarIconTests
|
||||
{
|
||||
Assert.Equal(
|
||||
requiresConfirmation,
|
||||
MeetingTaskbarExitPolicy.RequiresConfirmation(Status(state: state)));
|
||||
MeetingTaskbarExitPolicy.RequiresConfirmation(state));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
Reference in New Issue
Block a user