public void DescriptionViewerPosition() { DataFormApp_FieldsDescriptionViewer dataFormApp = new DataFormApp_FieldsDescriptionViewer(); this.EnqueueCallback(() => { this.DataFormAppBase = dataFormApp; dataFormApp.dataForm.CurrentItem = new DataClass(); }); this.AddToPanelAndWaitForLoad(); this.EnqueueCallback(() => { DescriptionViewer des1 = this.DataFormDescriptions[0] as DescriptionViewer; Label fieldLabel1 = this.DataFormLabels[0] as Label; DatePicker datePicker = this.DataFormInputControls[0] as DatePicker; Assert.IsTrue(this.GetPosition(fieldLabel1).X < this.GetPosition(des1).X); Assert.IsTrue(this.GetPosition(fieldLabel1).X < this.GetPosition(datePicker).X); Assert.IsTrue(this.GetPosition(datePicker).Y == this.GetPosition(des1).Y); DescriptionViewer des2 = this.DataFormDescriptions[1] as DescriptionViewer; Label fieldLabel2 = this.DataFormLabels[1] as Label; TextBox textBox = this.DataFormInputControls[1] as TextBox; Assert.IsTrue(this.GetPosition(fieldLabel2).X < this.GetPosition(des2).X); Assert.IsTrue(this.GetPosition(fieldLabel2).X < this.GetPosition(textBox).X); Assert.IsTrue(this.GetPosition(textBox).Y == this.GetPosition(des2).Y); DescriptionViewer des3 = this.DataFormDescriptions[2] as DescriptionViewer; Label fieldLabel3 = this.DataFormLabels[2] as Label; TextBox innerTextBox1 = this.DataFormInputControls[2] as TextBox; Assert.IsTrue(this.GetPosition(fieldLabel3).X < this.GetPosition(innerTextBox1).X); Assert.IsTrue(this.GetPosition(innerTextBox1).X < this.GetPosition(des3).X); Assert.IsTrue(this.GetPosition(innerTextBox1).Y == this.GetPosition(des3).Y); DescriptionViewer des4 = this.DataFormDescriptions[3] as DescriptionViewer; Label fieldLabel4 = this.DataFormLabels[3] as Label; TextBox innerTextBox2 = this.DataFormInputControls[3] as TextBox; Assert.IsTrue(this.GetPosition(fieldLabel4).X < this.GetPosition(innerTextBox2).X); Assert.IsTrue(this.GetPosition(fieldLabel4).X < this.GetPosition(des4).X); Assert.IsTrue(this.GetPosition(des4).X < this.GetPosition(innerTextBox2).X); Assert.IsTrue(this.GetPosition(des4).Y == this.GetPosition(fieldLabel4).Y); }); this.EnqueueTestComplete(); }