コード例 #1
0
        public void GettingApplyCommand__ReturnsDoNowCommand()
        {
            var doNowCommand = new DoNowCommand();

            var test = new DoNowPresenter(doNowCommand);

            Assert.Same(doNowCommand, test.ApplyCommand);
        }
コード例 #2
0
        public void SettingDisplayName__DoesNothing()
        {
            var test = new DoNowPresenter(null);

            string originalName = test.DisplayName;
            test.DisplayName = "Another name";

            Assert.Equal(originalName, test.DisplayName);
        }
コード例 #3
0
        public void GettingDisplayName__ReturnsDoNow()
        {
            var test = new DoNowPresenter(null);

            Assert.Equal("Now", test.DisplayName);
        }