コード例 #1
0
ファイル: TSGlyphInfo.cs プロジェクト: wonrst/TizenFX
        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)");
        }
コード例 #2
0
ファイル: TSGlyphInfo.cs プロジェクト: wonrst/TizenFX
        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)");
        }
コード例 #3
0
ファイル: TSGlyphInfo.cs プロジェクト: wonrst/TizenFX
        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)");
        }
コード例 #4
0
ファイル: TSGlyphInfo.cs プロジェクト: wonrst/TizenFX
        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)");
        }