public void AddTitle_TitleAdded_StringIsCorrectlyBuilded()
        {
            ControlsBuilder target = new ControlsBuilder();

            target.AddTitle();
            target.ToString().Should().Be("title");
        }
        public void AddSeparator_HeaderSeparatorAdded_StringIsCorrectlyBuilded()
        {
            ControlsBuilder target = new ControlsBuilder();

            target.AddSeparator(HeaderSeparator.Gap);
            target.AddSeparator(HeaderSeparator.Adjacent);
            target.ToString().Should().Be(" ,");
        }
        public void AddView_ViewAdded_StringIsCorrectlyBuilded()
        {
            ControlsBuilder target = new ControlsBuilder();

            target.AddView(AvailableView.Month);
            target.AddView(GenericView.Agenda);
            target.ToString().Should().Be("monthagenda");
        }
        public void AddButton_HeaderButtonAdded_StringIsCorrectlyBuilded()
        {
            ControlsBuilder target = new ControlsBuilder();

            target.AddButton(HeaderButton.Prev);
            target.AddButton(HeaderButton.Next);
            target.ToString().Should().Be("prevnext");
        }
Exemple #5
0
 public void Construct(ControlsBuilder controlsBuilder)
 {
     controlsBuilder.BuildButtons();
     controlsBuilder.BuildLabels();
 }