コード例 #1
0
        public static void ShouldHaveOneSelectedValue(this ICheckBoxGroup checkBoxGroup, string expected)
        {
            var actualCount = checkBoxGroup.ReadSelectedValues();

            actualCount.Count.Should().Be(1);
            var actualValue = actualCount.Single();

            actualValue.Should().Be(expected);
        }
コード例 #2
0
        public static void ShouldHaveSelectionCount(this ICheckBoxGroup checkBoxGroup, int expected)
        {
            var actual = checkBoxGroup.ReadSelectedValues();

            actual.Count.Should().Be(expected);
        }
コード例 #3
0
        public static void ShouldHaveOneSelectedItem(this ICheckBoxGroup checkBoxGroup)
        {
            var actual = checkBoxGroup.ReadSelectedValues();

            actual.Count.Should().Be(1);
        }
コード例 #4
0
        public static void ShouldHaveSelectedValue(this ICheckBoxGroup checkBoxGroup, string expected)
        {
            var actual = checkBoxGroup.ReadSelectedValues();

            actual.Should().Contain(expected);
        }