<commit_before>﻿using System.Linq;
using Bumblebee.Extensions;
using Bumblebee.IntegrationTests.Bumblebee.KendoUI.Pages;
using Bumblebee.IntegrationTests.Shared.DriverEnvironments;
using Bumblebee.Interfaces;
using Bumblebee.Setup;
using FluentAssertions;
using NUnit.Framework;

namespace Bumblebee.IntegrationTests.Bumblebee.KendoUI
{
    // ReSharper disable InconsistentNaming
    [TestFixture]
    public class Given_page_with_kendoui_drop_down_lists_and_no_options_selected
    {
        public const string Url = "http://demos.telerik.com/kendo-ui/dropdownlist/index";

        [TestFixtureSetUp]
        public void Init()
        {
            Threaded<Session>
                .With<LocalIeEnvironment>()
                .NavigateTo<KendoDropDownListDemoPage>(Url);
        }

        [TestFixtureTearDown]
        public void Dispose()
        {
            Threaded<Session>.End();
        }

        [Test]
        public void When_getting_text_for_options_Then_should_return_text_for_each_option()
        {
            Threaded<Session>
                .CurrentBlock<KendoDropDownListDemoPage>()
                .VerifyThat(p => p.Sizes
                    .Options
                    .Select(o => o.Text)
                    .Should().ContainInOrder("S - 6 3/4\"", "M - 7 1/4\"", "L - 7 1/8\"", "XL - 7 5/8\""));
        }

        [Test]
        public void Given_no_option_selected_Then_no_option_should_be_selected()
        {
            ISelectBox<KendoDropDownListDemoPage> colors = null;

            Threaded<Session>
                .CurrentBlock<KendoDropDownListDemoPage>()
                .VerifyThat(p => p.Colors.Options.Select(o => o.Selected).Should().BeEmpty());
        }
    }<commit_msg>Got rid of extraneous line in test.<commit_after>﻿using System.Linq;
using Bumblebee.Extensions;
using Bumblebee.IntegrationTests.Bumblebee.KendoUI.Pages;
using Bumblebee.IntegrationTests.Shared.DriverEnvironments;
using Bumblebee.Interfaces;
using Bumblebee.Setup;
using FluentAssertions;
using NUnit.Framework;

namespace Bumblebee.IntegrationTests.Bumblebee.KendoUI
{
    // ReSharper disable InconsistentNaming
    [TestFixture]
    public class Given_page_with_kendoui_drop_down_lists_and_no_options_selected
    {
        public const string Url = "http://demos.telerik.com/kendo-ui/dropdownlist/index";

        [TestFixtureSetUp]
        public void Init()
        {
            Threaded<Session>
                .With<LocalIeEnvironment>()
                .NavigateTo<KendoDropDownListDemoPage>(Url);
        }

        [TestFixtureTearDown]
        public void Dispose()
        {
            Threaded<Session>.End();
        }

        [Test]
        public void When_getting_text_for_options_Then_should_return_text_for_each_option()
        {
            Threaded<Session>
                .CurrentBlock<KendoDropDownListDemoPage>()
                .VerifyThat(p => p.Sizes
                    .Options
                    .Select(o => o.Text)
                    .Should().ContainInOrder("S - 6 3/4\"", "M - 7 1/4\"", "L - 7 1/8\"", "XL - 7 5/8\""));
        }

        [Test]
        public void Given_no_option_selected_Then_no_option_should_be_selected()
        {
            Threaded<Session>
                .CurrentBlock<KendoDropDownListDemoPage>()
                .VerifyThat(p => p.Colors.Options.Select(o => o.Selected).Should().BeEmpty());
        }
    }
{'fraction_non_alphanumeric': 0.10193889541715628, 'fraction_numerical': 0.007050528789659225, 'mean_word_length': 2.227488151658768, 'pattern_counts': {'":': 0, '<': 20, '<?xml version=': 0, '>': 28, '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': '7591043', 'n_tokens_mistral': 1073, 'n_tokens_neox': 1020, 'n_words': 157}