Esempio n. 1
0
        public void No_highlights_added_for_no_matches()
        {
            // When
            box.Text = "MISS, MISS, MISS";

            // Then
            Highlights.Should().BeEmpty();
        }
Esempio n. 2
0
        public void Highlights_are_added_for_multiple_matches()
        {
            // When
            box.Text = "MISS, HIT, MISS, HIT, HIT, MISS";

            // Then
            Highlights.Should().HaveCount(3);
        }
Esempio n. 3
0
        public void A_highlight_is_added_for_a_match_even_with_whitespace()
        {
            // When
            box.Text = "    HIT  \r\n\t  ,MISS,MISS";

            // Then
            Highlights.Should().HaveCount(1);
        }
Esempio n. 4
0
        public void Highlights_are_updated_when_text_is_changed()
        {
            // Given
            box.Text = "MISS, HIT";
            Highlights.Should().HaveCount(1);

            //When
            box.Text = "MISS, MISS ";

            // Then
            Highlights.Should().HaveCount(0);
        }