public void CtorTest() { var target = new AttributeDefinitionProperty <MyDisplayAttribute>(); target.Attributes.Should() .HaveCount(0); }
public void CtorTest() { var target = new AttributeDefinitionProperty<DisplayAttribute>(); target.Attributes.Should() .HaveCount( 0 ); }
public void AttributesTest() { var target = new AttributeDefinitionProperty<DisplayAttribute>(); var expected = new List<DisplayAttribute>(); target.Attributes = expected; target.Attributes.Should() .BeSameAs( expected ); }
public void AttributesTest() { var target = new AttributeDefinitionProperty <MyDisplayAttribute>(); var expected = new List <MyDisplayAttribute>(); target.Attributes = expected; target.Attributes.Should() .BeSameAs(expected); }
public void PropertyTest() { var target = new AttributeDefinitionProperty<DisplayAttribute>(); var expected = typeof (DisplayAttribute).GetProperties() .First(); target.Property = expected; target.Property.Should() .BeSameAs( expected ); }
public void PropertyTest() { var target = new AttributeDefinitionProperty <MyDisplayAttribute>(); var expected = typeof(MyDisplayAttribute).GetProperties() .First(); target.Property = expected; target.Property.Should() .BeSameAs(expected); }