public void SetUp() { dto = new FixtureDto() { Fullname = "the full name", Name = "Math", Namespace = "some namespace" }; selector = new FixtureSelector(dto); }
public bool Equals(FixtureDto other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Equals(other.Name, Name) && Equals(other.Namespace, Namespace) && Equals(other.Fullname, Fullname)); }
public FixtureSelector(FixtureDto dto) { _dto = dto; Height = 25; this.Horizontal(); _checkbox = this.Add<CheckBox>(); _checkbox.Padding = new Thickness(0, 5, 0, 0); _checkbox.VerticalAlignment = VerticalAlignment.Center; this.Add<System.Windows.Controls.Label>(l => { l.Content = dto.Name; l.VerticalAlignment = VerticalAlignment.Top; }); ToolTip = new ToolTip() {Content = dto.Fullname}; }
public bool Equals(FixtureDto other) { if (ReferenceEquals(null, other)) return false; if (ReferenceEquals(this, other)) return true; return Equals(other.Name, Name) && Equals(other.Namespace, Namespace) && Equals(other.Fullname, Fullname); }