public void Exec_DoesNothing()
        {
            var command = new DebugFrameworkPropertyMenuTextUpdater(null);

            DebugFrameworkPropertyMenuTextUpdater.ExecHandler(command, EventArgs.Empty);
            Assert.True(command.Visible);
            Assert.Equal("", command.Text);
            Assert.False(command.Checked);
            Assert.True(command.Enabled);
        }
コード例 #2
0
        public void Exec_DoesNothing()
        {
            var startupHelper = new Mock <IStartupProjectHelper>();
            var command       = new DebugFrameworkPropertyMenuTextUpdater(startupHelper.Object);

            DebugFrameworkPropertyMenuTextUpdater.ExecHandler(command, EventArgs.Empty);
            Assert.True(command.Visible);
            Assert.Equal("", command.Text);
            Assert.False(command.Checked);
            Assert.True(command.Enabled);
        }