public async Task OutlinedButton_OnMouseOver_UsesThemeBrush() { await using var recorder = new TestRecorder(App); //Arrange IVisualElement <Button> button = await LoadXaml <Button>( @"<Button Content=""Button"" Style=""{StaticResource MaterialDesignOutlinedButton}""/>"); Color midColor = await GetThemeColor("PrimaryHueMidBrush"); IVisualElement <Border> internalBorder = await button.GetElement <Border>("border"); //Act await button.MoveCursorTo(Position.Center); await Wait.For(async() => { SolidColorBrush?internalBorderBackground = (await internalBorder.GetBackground()) as SolidColorBrush; //Assert Assert.Equal(midColor, internalBorderBackground?.Color); }); recorder.Success(); }