Example #1
0
        public void TestSetsAndGets()
        {
            UIFormGridInheritor formGrid = new UIFormGridInheritor();

            Assert.AreEqual("rel", formGrid.RelationshipName);
            formGrid.SetRelationshipName("newrel");
            Assert.AreEqual("newrel", formGrid.RelationshipName);

            Assert.AreEqual("correl", formGrid.CorrespondingRelationshipName);
            formGrid.SetCorrespondingRelationshipName("newcorrel");
            Assert.AreEqual("newcorrel", formGrid.CorrespondingRelationshipName);

            Assert.AreEqual(typeof(DataGridView), formGrid.GridType);
            formGrid.SetGridType(typeof(ComboBox));
            Assert.AreEqual(typeof(ComboBox), formGrid.GridType);
        }
Example #2
0
        public void TestSetsAndGets()
        {
            UIFormGridInheritor formGrid = new UIFormGridInheritor();

            Assert.AreEqual("rel", formGrid.RelationshipName);
            formGrid.SetRelationshipName("newrel");
            Assert.AreEqual("newrel", formGrid.RelationshipName);

            Assert.AreEqual("correl", formGrid.CorrespondingRelationshipName);
            formGrid.SetCorrespondingRelationshipName("newcorrel");
            Assert.AreEqual("newcorrel", formGrid.CorrespondingRelationshipName);

            Assert.AreEqual(typeof(DataGridView), formGrid.GridType);
            formGrid.SetGridType(typeof(ComboBox));
            Assert.AreEqual(typeof(ComboBox), formGrid.GridType);
        }