public void TestConstructor_ShouldSetRelationshipNameSameAsPropName() { //---------------Set up test pack------------------- var grid = GetControlFactory().CreateReadOnlyGrid(); const string propName = "asdfa"; //---------------Execute Test ---------------------- var mapper = new MultipleRelationshipReadOnlyGridMapper(grid, propName, false, GetControlFactory()); //---------------Test Result ----------------------- Assert.AreEqual(mapper.PropertyName, mapper.RelationshipName, "RelName == propName"); }
public void TestConstructor_ShouldSetRelationshipNameSameAsPropName() { //---------------Set up test pack------------------- var grid = GetControlFactory().CreateReadOnlyGrid(); const string propName = "asdfa"; //---------------Execute Test ---------------------- var mapper = new MultipleRelationshipReadOnlyGridMapper(grid, propName, false, GetControlFactory()); //---------------Test Result ----------------------- Assert.AreEqual(mapper.PropertyName, mapper.RelationshipName, "RelName == propName"); }