Exemplo n.º 1
0
        public void Setup()
        {
            _originalShowFirstParent    = AppSettings.ShowFirstParent;
            AppSettings.ShowFirstParent = false;

            _gitModule          = Substitute.For <IGitModule>();
            _revisionGridFilter = Substitute.For <IRevisionGridFilter>();

            _filterToolBar = new();
            _filterToolBar.Bind(() => _gitModule, _revisionGridFilter);
            _filterToolBar.GetTestAccessor().SetUnitTestsMode();
        }
Exemplo n.º 2
0
        public void Setup()
        {
            _originalShowFirstParent         = AppSettings.ShowFirstParent;
            _originalShowReflogReferences    = AppSettings.ShowReflogReferences;
            AppSettings.ShowFirstParent      = false;
            AppSettings.ShowReflogReferences = false;

            _gitModule          = Substitute.For <IGitModule>();
            _revisionGridFilter = Substitute.For <IRevisionGridFilter>();

            _filterToolBar = new();
            _filterToolBar.Bind(() => _gitModule, _revisionGridFilter);
        }
Exemplo n.º 3
0
 public void GetModule_should_throw_if_unbound()
 {
     ((Action)(() => _ = new FilterToolBar().GetTestAccessor().GetModule()))
     .Should().Throw <InvalidOperationException>();
 }
Exemplo n.º 4
0
 public void RevisionGridFilter_should_throw_if_unbound()
 {
     ((Action)(() => _ = new FilterToolBar().GetTestAccessor().RevisionGridFilter))
     .Should().Throw <InvalidOperationException>();
 }