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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
public void ProcessSplitPropertyTestMarqueeStyle1() { //Arrange Split split = new Split(); SplitPropertyReader.ProcessSplitProperty(split, "MarqueeStyle", "C1.Win.C1TrueDBGrid.MarqueeEnum.SolidCellBorder"); string expectedResult = "SolidCellBorder"; //Act string actualResult = split.Properties["MarqueeStyle"]; //Assert Assert.AreEqual(expectedResult, actualResult); }
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); }
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); }
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); }
public void ProcessSplitPropertyTestHighlightRowStyle() { //Arrange Split split = new Split(); SplitPropertyReader.ProcessSplitProperty(split, "HighLightRowStyle.ForeColor", "System.Drawing.SystemColors.ControlDark"); string expectedResult = "ControlDark"; //Act string actualResult = split.Styles["HighLightRowStyle"].Properties["ForeColor"]; //Assert Assert.AreEqual(expectedResult, actualResult); }
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); }
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); }
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); }
public void ProcessSplitPropertyTestCaptionStyle() { //Arrange Split split = new Split(); SplitPropertyReader.ProcessSplitProperty(split, "CaptionStyle.BackColor", "System.Drawing.Color.Blue"); string expectedResult = "Blue"; //Act string actualResult = split.Styles["CaptionStyle"].Properties["BackColor"]; //Assert Assert.AreEqual(expectedResult, actualResult); }
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); }
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); }