mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-16 17:10:20 -10:00
* FieldTemplateFactoryTest.cs: added
* DynamicControlTest.cs: added TearDown method to clean up after
non-default field template tests.
Added tests for GetAttribute, HtmlEncode, FormattingOptions, Mode,
NullDisplayText, SetAttribute, ValidationGroup.
2009-07-14 Marek Habersack <[email protected]>
* AssertExtensions.cs: include full exception trace in the Fail
message
2009-07-14 Marek Habersack <[email protected]>
* FieldTemplateFactory.cs: implemented TemplateFolderVirtualPath
svn path=/trunk/mcs/; revision=137862
25 lines
626 B
C#
25 lines
626 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.DynamicData;
|
|
|
|
namespace MonoTests.DataObjects
|
|
{
|
|
public class Employee
|
|
{
|
|
public string FirstName { get; set; }
|
|
|
|
[UIHint ("CustomFieldTemplate")]
|
|
[DisplayFormat (ConvertEmptyStringToNull=true, NullDisplayText="No value for this column")]
|
|
public string LastName { get; set; }
|
|
|
|
[DisplayFormat (ApplyFormatInEditMode=true, DataFormatString="Boolean value: {0}")]
|
|
public bool Active { get; set; }
|
|
|
|
public Color FavoriteColor { get; set; }
|
|
}
|
|
}
|