Axiom.UnitTests.Fonts.FontManagerRegressionTests.TestParseCorrectTrueTypeFontDef C# (CSharp) Method

TestParseCorrectTrueTypeFontDef() private method

private TestParseCorrectTrueTypeFontDef ( ) : void
return void
        public void TestParseCorrectTrueTypeFontDef()
        {
            FontManager fontManager = new FontManager();

            Stream stream = GetFontDefinitonStream();
            fontManager.ParseScript( stream, String.Empty, String.Empty );
            Font parsedFont = (Font)fontManager[ FontName ];

            Assert.AreEqual( CorrectFontType, parsedFont.Type, String.Format( "The parsed font should be of type {0}.", CorrectFontType ) );
            Assert.AreEqual( SourceName, parsedFont.Source, String.Format( "The parsed font should have the source {0}.", SourceName ) );
            Assert.AreEqual( TrueTypeSize, parsedFont.TrueTypeSize, String.Format( "The parsed font should have the TrueTypeSize {0}.", TrueTypeSize ) );
            Assert.AreEqual( TrueTypeResolution, parsedFont.TrueTypeResolution, String.Format( "The parsed font should have the TrueTypeResolution {0}.", TrueTypeResolution ) );
        }