Esempio n. 1
0
        public void SetRevisionFilter_when_empty(string given, string expected)
        {
            _filterToolBar.SetRevisionFilter(given);

            _filterToolBar.GetTestAccessor().tstxtRevisionFilter.Text.Should().Be(expected);
            _revisionGridFilter.DidNotReceive().SetAndApplyRevisionFilter(Arg.Any <RevisionFilter>());
        }
        public void SetRevisionFilter(string given, string expected)
        {
            _filterToolBar.SetRevisionFilter(given);

            _filterToolBar.GetTestAccessor().tstxtRevisionFilter.Text.Should().Be(expected);
            _revisionGridFilter.Received().SetAndApplyRevisionFilter(
                Arg.Is <RevisionFilter>(revisionFilter => AssertFilter(revisionFilter, expected,
                                                                       _filterToolBar.GetTestAccessor().tsmiCommitFilter.Checked,
                                                                       _filterToolBar.GetTestAccessor().tsmiCommitterFilter.Checked,
                                                                       _filterToolBar.GetTestAccessor().tsmiAuthorFilter.Checked,
                                                                       _filterToolBar.GetTestAccessor().tsmiDiffContainsFilter.Checked)));
        }