title: How to test imported custom font in XCTest (Swift 5)
body: <p><strong>Hi everyone!</strong>
  I imported custom font in project.
  How can I test it with the text in the text field?
  For example I have text field with text = &quot;Stack overflow&quot;, with font = UIFont(name: &quot;Roboto-Regular&quot;, size: 17).
  How can I check that text = &quot;Stack overflow&quot; has font = UIFont(name: &quot;Roboto-Regular&quot;, size: 17)? Have you any ideas, how to implement this in XCTest?</p>
  <p><strong>Extensions</strong></p>
  <hr />
  <pre><code>import UIKit
  
  extension UIFont {
  
      static func robotoRegular (size: CGFloat) -&gt; UIFont? {
          return UIFont(name: &quot;Roboto-Regular&quot;, size: size)
      }
  
      static func robotoBold (size: CGFloat) -&gt; UIFont? {
          return UIFont(name: &quot;Roboto-Bold&quot;, size: size)
      }
  
  }
  </code></pre>
  <hr />