public void Initialize_ShouldSetIsFocusedToTrue() { mSut.Initialize(); RequiredStringProperty key = (RequiredStringProperty)mSut.Properties.Single(p => p.GetType() == typeof(RequiredStringProperty)); Assert.IsTrue(key.IsFocused); }
set => SetValue(RequiredStringProperty, value);
public SmtpAppender(IElementConfiguration configuration) : base(configuration, true) { mUsername = new RequiredStringProperty("Username:"******"username"); mPassword = new Password("Password:"******"password"); }
public void SetUp() { mSut = new RequiredStringProperty("name", "elementName"); }