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");
 }
Example #4
0
 public void SetUp()
 {
     mSut = new RequiredStringProperty("name", "elementName");
 }