public void CreateAppointmentLabel_ValidAppointmentsWeekView_ReturnsLabelCenter()
        {
            MainWindow.ViewMode modeview = MainWindow.ViewMode.Weeks;

            string      title       = "sample_title";
            DateTime    date        = new DateTime();
            DateTime    start       = new DateTime();
            DateTime    end         = new DateTime();
            string      description = "";
            User        creator     = null;
            List <User> users       = new List <User>();

            Appointment appointment = new Appointment(title, date, start, end, description, creator, users);

            Label label = new Label
            {
                HorizontalAlignment = HorizontalAlignment.Center,
                VerticalAlignment   = VerticalAlignment.Center,
                FontSize            = 12,
                Content             = "test"
            };

            var result = MainWindow.CreateAppointmentLabel(appointment, modeview);

            Assert.AreEqual(label.HorizontalAlignment, result.HorizontalAlignment);
        }
        public void CreateNumberLabel_NullTextValidView_ReturnsLabelNullContent()
        {
            string contentText = null;

            MainWindow.ViewMode modeview = MainWindow.ViewMode.Months;
            Label label  = new Label();
            var   result = MainWindow.CreateNumberLabel(contentText, modeview);

            Assert.AreEqual(result.Content, label.Content);
        }
        public void CreateAppointmentLabel_NullAppointmentsWeekView_ReturnsNull()
        {
            Appointment appointment = null;

            MainWindow.ViewMode modeview = MainWindow.ViewMode.Weeks;

            var result = MainWindow.CreateAppointmentLabel(appointment, modeview);

            Assert.IsNull(result);
        }
        public void CreateNumberLabel_ValidTextWeekView_ReturnsLabelCenterAlignment()
        {
            string contentText = "";

            MainWindow.ViewMode modeview = MainWindow.ViewMode.Weeks;
            Label label = new Label
            {
                HorizontalAlignment = HorizontalAlignment.Center,
                VerticalAlignment   = VerticalAlignment.Center,
                FontSize            = 24,
                Content             = contentText,
            };
            var result = MainWindow.CreateNumberLabel(contentText, modeview);

            Assert.AreEqual(label.HorizontalAlignment, result.HorizontalAlignment);
        }
        public void CreateNumberLabel_ValidTextMonthView_ReturnsLabeLeftAlignment()
        {
            string contentText = "";

            MainWindow.ViewMode modeview = MainWindow.ViewMode.Months;
            Label label = new Label
            {
                HorizontalAlignment = HorizontalAlignment.Left,
                VerticalAlignment   = VerticalAlignment.Top,
                Width   = 30,
                Height  = 240,
                Content = contentText
            };
            var result = MainWindow.CreateNumberLabel(contentText, modeview);

            Assert.AreEqual(label.HorizontalAlignment, result.HorizontalAlignment);
        }