예제 #1
0
        public void ProcessPrintInfoPropertyTestPageHeader()
        {
            //Arrange
            PrintInfo printInfo = new PrintInfo();

            PrintInfoPropertyReader.ProcessPrintInfoProperty(printInfo, "PageHeader", "\"abc\"");
            string expectedResult = "abc";
            //Act
            string actualResult = printInfo.Properties["PageHeader"];

            //Assert
            Assert.AreEqual(expectedResult, actualResult);
        }
예제 #2
0
        public void ProcessPrintInfoPropertyTestOwnerDrawPageHeader()
        {
            //Arrange
            PrintInfo printInfo = new PrintInfo();

            PrintInfoPropertyReader.ProcessPrintInfoProperty(printInfo, "OwnerDrawPageHeader", "true");
            string expectedResult = "true";
            //Act
            string actualResult = printInfo.Properties["OwnerDrawPageHeader"];

            //Assert
            Assert.AreEqual(expectedResult, actualResult);
        }
예제 #3
0
        public void ProcessPrintInfoPropertyTestPageFooterHeight()
        {
            //Arrange
            PrintInfo printInfo = new PrintInfo();

            PrintInfoPropertyReader.ProcessPrintInfoProperty(printInfo, "PageFooterHeight", "4");
            string expectedResult = "4";
            //Act
            string actualResult = printInfo.Properties["PageFooterHeight"];

            //Assert
            Assert.AreEqual(expectedResult, actualResult);
        }
예제 #4
0
        public void ProcessPrintInfoPropertyTestPageFooterStyle()
        {
            //Arrange
            PrintInfo printInfo = new PrintInfo();

            PrintInfoPropertyReader.ProcessPrintInfoProperty(printInfo, "PageFooterStyle.Font", "new System.Drawing.Font(\"Microsoft Sans Serif\", 9.75f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0)");
            string expectedResult = "Microsoft Sans Serif, 9.75pt";
            //Act
            string actualResult = printInfo.PageFooterStyle.Properties["Font"];

            //Assert
            Assert.AreEqual(expectedResult, actualResult);
        }
예제 #5
0
        public void ProcessPrintInfoPropertyTestPageHeaderStyle()
        {
            //Arrange
            PrintInfo printInfo = new PrintInfo();

            PrintInfoPropertyReader.ProcessPrintInfoProperty(printInfo, "PageHeaderStyle.HorizontalAlignment", "C1.Win.C1TrueDBGrid.AlignHorzEnum.Justify");
            string expectedResult = "Justify";
            //Act
            string actualResult = printInfo.PageHeaderStyle.Properties["AlignHorz"];

            //Assert
            Assert.AreEqual(expectedResult, actualResult);
        }
예제 #6
0
        public void ProcessPrintInfoPropertyTestVarRowHeight()
        {
            //Arrange
            PrintInfo printInfo = new PrintInfo();

            PrintInfoPropertyReader.ProcessPrintInfoProperty(printInfo, "VarRowHeight", "C1.Win.C1TrueDBGrid.PrintInfo.RowHeightEnum.LikeGrid");
            string expectedResult = "LikeGrid";
            //Act
            string actualResult = printInfo.Properties["VarRowHeight"];

            //Assert
            Assert.AreEqual(expectedResult, actualResult);
        }
예제 #7
0
        public void ProcessPrintInfoPropertyTestRepeatSplitHeaders()
        {
            //Arrange
            PrintInfo printInfo = new PrintInfo();

            PrintInfoPropertyReader.ProcessPrintInfoProperty(printInfo, "RepeatSplitHeaders", "true");
            string expectedResult = "true";
            //Act
            string actualResult = printInfo.Properties["RepeatSplitHeaders"];

            //Assert
            Assert.AreEqual(expectedResult, actualResult);
        }