Ejemplo n.º 1
0
        public void GenerateLabelWithSugarForNotYetDefinedFieldDefinitionTest()
        {
            var result = LabelWithSugarForExtensions.LabelWithFieldDefinitionForImpl("My Field",
                                                                                     "myField",
                                                                                     null,
                                                                                     "/FieldDefinition/FieldDefinitionDetails/1",
                                                                                     300,
                                                                                     LabelWithSugarForExtensions.DisplayStyle.HelpIconWithLabel, false);

            Approvals.Verify(result);
        }
Ejemplo n.º 2
0
        public void GenerateLabelWithSugarForDefinedFieldDefinitionForHelpIconOnlyTest()
        {
            var fieldDefinitionData = new TestFieldDefinitionData(-1, "My field's definition");
            var result = LabelWithSugarForExtensions.LabelWithFieldDefinitionForImpl("My Field",
                                                                                     "myField",
                                                                                     fieldDefinitionData,
                                                                                     "/FieldDefinition/FieldDefinitionDetails/1",
                                                                                     300,
                                                                                     LabelWithSugarForExtensions.DisplayStyle.HelpIconOnly, false);

            Approvals.Verify(result);
        }