Exemplo n.º 1
0
        protected void CheckSpecialField <T>(string name, string displayName)
        {
            ViewField field = ViewFields.FindByName(name);

            Assert.That(field, Is.Not.Null, "Unabled to find field: {0}", name);

            FieldMapping specialFieldMapping = ModuleMapping.GetFieldMapping(field, true);

            Assert.That(specialFieldMapping, Is.Not.Null);
            Assert.That(specialFieldMapping, Is.TypeOf <T>());
            Assert.That(specialFieldMapping.Name, Is.EqualTo(displayName));
        }