public void Be_Creatable() { var sut = new XceedIntegerField(new FieldDefinition { Key = "key" }, ServiceLocator); sut.Should().NotBeNull(); sut.Should().BeAssignableTo <INZazuWpfField>(); }
public void Only_use_supported_FormatStrings(string formatString, string expected) { var sut = new XceedIntegerField(new FieldDefinition { Key = "key" }, ServiceLocator); sut.Definition.Settings.Add("Format", formatString); var control = (IntegerUpDown)sut.ValueControl; control.FormatString.Should().Be(expected); }
public void Use_IntegerUpdown() { var sut = new XceedIntegerField(new FieldDefinition { Key = "key" }, ServiceLocator); sut.ContentProperty.Should().Be(IntegerUpDown.ValueProperty); var control = (IntegerUpDown)sut.ValueControl; control.Should().NotBeNull(); }