public void Be_Creatable() { var sut = new XceedTextBoxField(new FieldDefinition { Key = "test" }, ServiceLocator); sut.Should().NotBeNull(); sut.Should().BeAssignableTo <INZazuWpfField>(); }
public void Create_TextBox_with_ToolTip_Matching_Description() { var sut = new XceedTextBoxField(new FieldDefinition { Key = "textbox01", Description = "description", Hint = "hint" }, ServiceLocator); sut.Definition.Description.Should().Be("description"); sut.Definition.Hint.Should().Be("hint"); var textBox = (WatermarkTextBox)sut.ValueControl; textBox.Should().NotBeNull(); textBox.Text.Should().BeEmpty(); textBox.ToolTip.Should().Be(sut.Definition.Description); textBox.Watermark.Should().Be(sut.Definition.Hint); }