Exemple #1
0
        public void GlyphInfoConstructorWithParameters()
        {
            tlog.Debug(tag, $"GlyphInfoConstructorWithParameters START");

            var testingTarget = new GlyphInfo(1, 2);

            Assert.IsNotNull(testingTarget, "Can't create success object GlyphInfo.");
            Assert.IsInstanceOf <GlyphInfo>(testingTarget, "Should return GlyphInfo instance.");

            testingTarget.Dispose();
            tlog.Debug(tag, $"GlyphInfoConstructorWithParameters END (OK)");
        }
Exemple #2
0
        public void GlyphInfoIndex()
        {
            tlog.Debug(tag, $"GlyphInfoIndex START");

            var testingTarget = new GlyphInfo(1, 2);

            Assert.IsNotNull(testingTarget, "Can't create success object GlyphInfo.");
            Assert.IsInstanceOf <GlyphInfo>(testingTarget, "Should return GlyphInfo instance.");

            testingTarget.Index = 3;
            tlog.Debug(tag, "Index :" + testingTarget.FontId);

            testingTarget.Dispose();
            tlog.Debug(tag, $"GlyphInfoIndex END (OK)");
        }
Exemple #3
0
        public void GlyphInfoScaleFactor()
        {
            tlog.Debug(tag, $"GlyphInfoScaleFactor START");

            var testingTarget = new GlyphInfo(1, 2);

            Assert.IsNotNull(testingTarget, "Can't create success object GlyphInfo.");
            Assert.IsInstanceOf <GlyphInfo>(testingTarget, "Should return GlyphInfo instance.");

            testingTarget.ScaleFactor = 0.3f;
            tlog.Debug(tag, "ScaleFactor :" + testingTarget.ScaleFactor);

            testingTarget.Dispose();
            tlog.Debug(tag, $"GlyphInfoScaleFactor END (OK)");
        }
Exemple #4
0
        public void GlyphInfoAdvance()
        {
            tlog.Debug(tag, $"GlyphInfoAdvance START");

            var testingTarget = new GlyphInfo(1, 2);

            Assert.IsNotNull(testingTarget, "Can't create success object GlyphInfo.");
            Assert.IsInstanceOf <GlyphInfo>(testingTarget, "Should return GlyphInfo instance.");

            testingTarget.Advance = 20.0f;
            tlog.Debug(tag, "Advance :" + testingTarget.Advance);

            testingTarget.Dispose();
            tlog.Debug(tag, $"GlyphInfoAdvance END (OK)");
        }