Пример #1
0
        public void ProcessSplitPropertyTestSplitSize()
        {
            //Arrange
            Split split = new Split();

            SplitPropertyReader.ProcessSplitProperty(split, "SplitSize", "5");
            string expectedResult = "5";
            //Act
            string actualResult = split.Properties["SplitSize"];

            //Assert
            Assert.AreEqual(expectedResult, actualResult);
        }
Пример #2
0
        public void ProcessSplitPropertyTestSplitSizeModeNumberOfColumns()
        {
            //Arrange
            Split split = new Split();

            SplitPropertyReader.ProcessSplitProperty(split, "SplitSizeMode", "C1.Win.C1TrueDBGrid.SizeModeEnum.NumberOfColumns");
            string expectedResult = "NumberOfColumns";
            //Act
            string actualResult = split.Properties["SplitSizeMode"];

            //Assert
            Assert.AreEqual(expectedResult, actualResult);
        }
Пример #3
0
        public void ProcessSplitPropertyTestFilterBar()
        {
            //Arrange
            Split split = new Split();

            SplitPropertyReader.ProcessSplitProperty(split, "FilterBar", "true");
            string expectedResult = "True";
            //Act
            string actualResult = split.Properties["FilterBar"];

            //Assert
            Assert.AreEqual(expectedResult, actualResult);
        }
Пример #4
0
        public void ProcessSplitPropertyTestVerticalScrollGroup()
        {
            //Arrange
            Split split = new Split();

            SplitPropertyReader.ProcessSplitProperty(split, "VerticalScrollGroup", "5");
            string expectedResult = "5";
            //Act
            string actualResult = split.Properties["VerticalScrollGroup"];

            //Assert
            Assert.AreEqual(expectedResult, actualResult);
        }
Пример #5
0
        public void ProcessSplitPropertyTestAlternatingRowStyle()
        {
            //Arrange
            Split split = new Split();

            SplitPropertyReader.ProcessSplitProperty(split, "AlternatingRows", "true");
            string expectedResult = "True";
            //Act
            string actualResult = split.Properties["AlternatingRowStyle"];

            //Assert
            Assert.AreEqual(expectedResult, actualResult);
        }
Пример #6
0
        public void ProcessSplitPropertyTestCaption()
        {
            //Arrange
            Split split = new Split();

            SplitPropertyReader.ProcessSplitProperty(split, "Caption", "\"abc\"");
            string expectedResult = "abc";
            //Act
            string actualResult = split.Properties["Caption"];

            //Assert
            Assert.AreEqual(expectedResult, actualResult);
        }
Пример #7
0
        public void ProcessSplitPropertyTestAllowRowSelect()
        {
            //Arrange
            Split split = new Split();

            SplitPropertyReader.ProcessSplitProperty(split, "AllowRowSelect", "false");
            string expectedResult = "False";
            //Act
            string actualResult = split.Properties["AllowRowSelect"];

            //Assert
            Assert.AreEqual(expectedResult, actualResult);
        }
Пример #8
0
        public void ProcessSplitPropertyTestRecordSelectorWidth()
        {
            //Arrange
            Split split = new Split();

            SplitPropertyReader.ProcessSplitProperty(split, "RecordSelectorWidth", "931");
            string expectedResult = "931";
            //Act
            string actualResult = split.Properties["RecordSelectorWidth"];

            //Assert
            Assert.AreEqual(expectedResult, actualResult);
        }
Пример #9
0
        public void ProcessSplitPropertyTestAllowRowSizing()
        {
            //Arrange
            Split split = new Split();

            SplitPropertyReader.ProcessSplitProperty(split, "AllowRowSizing", "C1.Win.C1TrueDBGrid.RowSizingEnum.None");
            string expectedResult = "None";
            //Act
            string actualResult = split.Properties["AllowRowSizing"];

            //Assert
            Assert.AreEqual(expectedResult, actualResult);
        }
Пример #10
0
        public void ProcessSplitPropertyTestExtendRightColumn()
        {
            //Arrange
            Split split = new Split();

            SplitPropertyReader.ProcessSplitProperty(split, "ExtendRightColumn", "true");
            string expectedResult = "True";
            //Act
            string actualResult = split.Properties["ExtendRightColumn"];

            //Assert
            Assert.AreEqual(expectedResult, actualResult);
        }
Пример #11
0
        public void ProcessSplitPropertyTestMarqueeStyle4()
        {
            //Arrange
            Split split = new Split();

            SplitPropertyReader.ProcessSplitProperty(split, "MarqueeStyle", "C1.Win.C1TrueDBGrid.MarqueeEnum.HighlightRowRaiseCell");
            string expectedResult = "HighlightRowRaiseCell";
            //Act
            string actualResult = split.Properties["MarqueeStyle"];

            //Assert
            Assert.AreEqual(expectedResult, actualResult);
        }
Пример #12
0
        public void ProcessSplitPropertyTestMarqueeStyle6()
        {
            //Arrange
            Split split = new Split();

            SplitPropertyReader.ProcessSplitProperty(split, "MarqueeStyle", "C1.Win.C1TrueDBGrid.MarqueeEnum.FloatingEditor");
            string expectedResult = "FloatingEditor";
            //Act
            string actualResult = split.Properties["MarqueeStyle"];

            //Assert
            Assert.AreEqual(expectedResult, actualResult);
        }
Пример #13
0
        public void ProcessSplitPropertyTestSelectedStyle()
        {
            //Arrange
            Split split = new Split();

            SplitPropertyReader.ProcessSplitProperty(split, "SelectedStyle.BackColor", "System.Drawing.Color.Navy");
            string expectedResult = "Navy";
            //Act
            string actualResult = split.Styles["SelectedStyle"].Properties["BackColor"];

            //Assert
            Assert.AreEqual(expectedResult, actualResult);
        }
Пример #14
0
        public void ProcessSplitPropertyTestStyle()
        {
            //Arrange
            Split split = new Split();

            SplitPropertyReader.ProcessSplitProperty(split, "Style.ForeColor", "System.Drawing.SystemColors.HighlightText");
            string expectedResult = "HighlightText";
            //Act
            string actualResult = split.Styles["Style"].Properties["ForeColor"];

            //Assert
            Assert.AreEqual(expectedResult, actualResult);
        }
Пример #15
0
        public void ProcessSplitPropertyTestInactiveStyle()
        {
            //Arrange
            Split split = new Split();

            SplitPropertyReader.ProcessSplitProperty(split, "InactiveStyle.ForeGroundPicturePosition", "C1.Win.C1TrueDBGrid.ForeGroundPicturePositionEnum.Near");
            string expectedResult = "Near";
            //Act
            string actualResult = split.Styles["InactiveStyle"].Properties["ForegroundImagePos"];

            //Assert
            Assert.AreEqual(expectedResult, actualResult);
        }
Пример #16
0
        public void ProcessSplitPropertyTestOddRowStyle()
        {
            //Arrange
            Split split = new Split();

            SplitPropertyReader.ProcessSplitProperty(split, "OddRowStyle.BackgroundPictureDrawMode", "C1.Win.C1TrueDBGrid.BackgroundPictureDrawModeEnum.Center");
            string expectedResult = "Center";
            //Act
            string actualResult = split.Styles["OddRowStyle"].Properties["AlignImage"];

            //Assert
            Assert.AreEqual(expectedResult, actualResult);
        }
Пример #17
0
        public void ProcessSplitPropertyTestHeadingStyle()
        {
            //Arrange
            Split split = new Split();

            SplitPropertyReader.ProcessSplitProperty(split, "HeadingStyle.HorizontalAlignment", "C1.Win.C1TrueDBGrid.AlignHorzEnum.Justify");
            string expectedResult = "Justify";
            //Act
            string actualResult = split.Styles["HeadingStyle"].Properties["AlignHorz"];

            //Assert
            Assert.AreEqual(expectedResult, actualResult);
        }
Пример #18
0
        public void ProcessSplitPropertyTestFooterStyle()
        {
            //Arrange
            Split split = new Split();

            SplitPropertyReader.ProcessSplitProperty(split, "FooterStyle.VerticalAlignment", "C1.Win.C1TrueDBGrid.AlignVertEnum.Bottom");
            string expectedResult = "Bottom";
            //Act
            string actualResult = split.Styles["FooterStyle"].Properties["AlignVert"];

            //Assert
            Assert.AreEqual(expectedResult, actualResult);
        }
Пример #19
0
        public void ProcessSplitPropertyTestEvenRowStyle()
        {
            //Arrange
            Split split = new Split();

            SplitPropertyReader.ProcessSplitProperty(split, "EvenRowStyle.Wrap", "C1.Win.C1TrueDBGrid.TextWrapping.NoWrap");
            string expectedResult = "NoWrap";
            //Act
            string actualResult = split.Styles["EvenRowStyle"].Properties["WrapText"];

            //Assert
            Assert.AreEqual(expectedResult, actualResult);
        }
Пример #20
0
        public void ProcessSplitPropertyTestEditorStyle()
        {
            //Arrange
            Split split = new Split();

            SplitPropertyReader.ProcessSplitProperty(split, "EditorStyle.Locked", "true");
            string expectedResult = "True";
            //Act
            string actualResult = split.Styles["EditorStyle"].Properties["Locked"];

            //Assert
            Assert.AreEqual(expectedResult, actualResult);
        }
Пример #21
0
        public void ProcessSplitPropertyTestDisplayColumns1()
        {
            //Arrange
            Split split = new Split();

            split.DisplayCols = new List <C1DisplayColumn>();
            SplitPropertyReader.ProcessSplitProperty(split, "DisplayColumns[0].Merge", "C1.Win.C1TrueDBGrid.ColumnMergeEnum.None");
            string expectedResult = "None";
            //Act
            string actualResult = split.DisplayCols[0].Properties["Merge"];

            //Assert
            Assert.AreEqual(expectedResult, actualResult);
        }
Пример #22
0
        public void ProcessSplitPropertyTestDisplayColumns2()
        {
            //Arrange
            Split split = new Split();

            split.DisplayCols = new List <C1DisplayColumn>();
            SplitPropertyReader.ProcessSplitProperty(split, "DisplayColumns[this.TDBGrid.Columns[0]].Width", "133");
            string expectedResult = "133";
            //Act
            string actualResult = split.DisplayCols[0].Properties["Width"];

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