public void Ctor_Bindable_BindingDirection(bool bindable, BindingDirection direction) { var attribute = new BindableAttribute(bindable, direction); Assert.Equal(bindable, attribute.Bindable); Assert.Equal(direction, attribute.Direction); Assert.Equal(!bindable, attribute.IsDefaultAttribute()); }
public void Ctor_BindableSupport_BindingDirection(BindableSupport support, BindingDirection direction, bool expectedBindable) { var attribute = new BindableAttribute(support, direction); Assert.Equal(expectedBindable, attribute.Bindable); Assert.Equal(direction, attribute.Direction); Assert.Equal(!expectedBindable || support == BindableSupport.Default, attribute.IsDefaultAttribute()); }
public void Ctor_Bindable(bool bindable) { var attribute = new BindableAttribute(bindable); Assert.Equal(bindable, attribute.Bindable); Assert.Equal(BindingDirection.OneWay, attribute.Direction); Assert.Equal(!bindable, attribute.IsDefaultAttribute()); }
public void No_Get_ReturnsExpected() { BindableAttribute attribute = BindableAttribute.No; Assert.Same(attribute, BindableAttribute.No); Assert.False(attribute.Bindable); Assert.Equal(BindingDirection.OneWay, attribute.Direction); Assert.True(attribute.IsDefaultAttribute()); }