示例#1
0
        public void MainFormInitializesCallToResizeStatusBarElementsTest()
        {
            var mock = new MockMainForm();

            mock.Show();
            Assert.IsTrue(mock.StatusResizeHasBeenCalled);
        }
示例#2
0
        public void MainFormInitializeScanWillCallResizeStatusBarTest()
        {
            var mock = new MockMainForm();

            mock.Show();
            mock.StatusResizeHasBeenCalled = false;
            mock.InitializeScan();
            Assert.IsTrue(mock.StatusResizeHasBeenCalled);
        }
示例#3
0
        public void PrepareScanCallsSetModelLoggerTest()
        {
            var mock = new MockMainForm();

            LoadStatsListView(mock);

            mock._model.SelectedFolder = "C:\\";
            mock.PrepareScan();

            Assert.IsTrue(mock.SetModelLoggerHasBeenCalled);
        }