public SendMessageView()
        {
            AvaloniaXamlLoader.Load(this);

            var txtSendMessage = this.FindControl <TextBox>("TxtSendMessage");

            txtSendMessage.FontFamily = MonospaceFontFamilyExtension.GetDefaultMonospaceFont();
        }
 public void CheckAvailabilityForInvalidFontFamily()
 {
     Assert.IsTrue(MonospaceFontFamilyExtension.IsFontFamilyAvailable("This family is not available"));
 }
 public void CheckAvailabilityForInvalidFontFamily()
 {
     Assert.IsNull(MonospaceFontFamilyExtension.TryParseFontFamily("This family is not available"));
 }
 public void CheckAvailabilityForAvailableFontFamily()
 {
     Assert.IsTrue(MonospaceFontFamilyExtension.IsFontFamilyAvailable("Courier New"));
 }
 public void CheckAvailabilityForAvailableFontFamily()
 {
     Assert.IsNotNull(MonospaceFontFamilyExtension.TryParseFontFamily("Courier New"));
 }