<commit_before>﻿using System.Linq;
using Microsoft.VisualStudio.TestTools.UITesting;
using Microsoft.VisualStudio.TestTools.UITesting.WpfControls;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace PokerLeagueManager.UI.Wpf.TestFramework
{
    public class GameResultsScreen : BaseScreen
    {
        public GameResultsScreen(ApplicationUnderTest app)
            : base(app)
        {
        }

        public GamesListScreen ClickClose()
        {
            Mouse.Click(CloseButton);
            return new GamesListScreen(App);
        }

        public GameResultsScreen VerifyGameDate(string gameDate)
        {
            Assert.AreEqual(gameDate, GameDateTextBox.Text);
            return this;
        }

        public override void VerifyScreen()
        {
            TakeScreenshot();
            CloseButton.Find();
        }

        private WpfButton CloseButton<commit_msg>intentionally creating stylecop violation to test the build ***NO_CI***<commit_after>﻿using System.Linq;
using Microsoft.VisualStudio.TestTools.UITesting;
using Microsoft.VisualStudio.TestTools.UITesting.WpfControls;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace PokerLeagueManager.UI.Wpf.TestFramework
{
    public class GameResultsScreen : BaseScreen
    {
        public GameResultsScreen(ApplicationUnderTest app)
            : base(app)
        {
        }

        public GamesListScreen ClickClose()
        {
            Mouse.Click(CloseButton);
            return new GamesListScreen(App);
        }

        public GameResultsScreen VerifyGameDate(string gameDate)
        {
            Assert.AreEqual(gameDate, GameDateTextBox.Text);
            return this;
        }

        public override void VerifyScreen()
        {
            TakeScreenshot(); 
            CloseButton.Find();
        }

        private WpfButton CloseButton
{'fraction_non_alphanumeric': 0.07268840192410475, 'fraction_numerical': 0.0, 'mean_word_length': 2.3790613718411553, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3435636', 'n_tokens_mistral': 489, 'n_tokens_neox': 467, 'n_words': 91}