public async Task OutlinedButton_BorderCanBeOverridden() { await using var recorder = new TestRecorder(App); //Arrange var button = await LoadXaml <Button>( @"<Button Content=""Button"" Style=""{StaticResource MaterialDesignOutlinedButton}"" BorderThickness=""5"" BorderBrush=""Red"" />"); Color midColor = await GetThemeColor("PrimaryHueMidBrush"); IVisualElement <Border> internalBorder = await button.GetElement <Border>("border"); //Act Thickness borderThickness = await internalBorder.GetBorderThickness(); Color?borderBrush = await internalBorder.GetBorderBrushColor(); //Assert Assert.Equal(new Thickness(5), borderThickness); Assert.Equal(Colors.Red, borderBrush); recorder.Success(); }