public void FontClientGlyphBufferDataHeight() { tlog.Debug(tag, $"FontClientGlyphBufferDataHeight START"); var testingTarget = new FontClient.GlyphBufferData();; Assert.IsNotNull(testingTarget, "Return a null object of GlyphBufferData"); Assert.IsInstanceOf <FontClient.GlyphBufferData>(testingTarget, "Should be an instance of GlyphBufferData type."); testingTarget.Height = 50; Assert.AreEqual(50, testingTarget.Height, "Should be equal!"); testingTarget.Dispose(); tlog.Debug(tag, $"FontClientGlyphBufferDataHeight END (OK)"); }
public void FontClientGlyphBufferDataFormat() { tlog.Debug(tag, $"FontClientGlyphBufferDataFormat START"); var testingTarget = new FontClient.GlyphBufferData(); Assert.IsNotNull(testingTarget, "Return a null object of GlyphBufferData"); Assert.IsInstanceOf <FontClient.GlyphBufferData>(testingTarget, "Should be an instance of GlyphBufferData type."); testingTarget.Format = PixelFormat.BGR8888; Assert.AreEqual(PixelFormat.BGR8888, testingTarget.Format, "Should be equal!"); testingTarget.Dispose(); tlog.Debug(tag, $"FontClientGlyphBufferDataFormat END (OK)"); }
public void FontClientGlyphBufferDataConstructor() { tlog.Debug(tag, $"FontClientGlyphBufferDataConstructor START"); using (FontClient.GlyphBufferData data = new FontClient.GlyphBufferData()) { var testingTarget = new FontClient.GlyphBufferData(FontClient.GlyphBufferData.getCPtr(data).Handle, true); Assert.IsNotNull(testingTarget, "Return a null object of GlyphBufferData"); Assert.IsInstanceOf <FontClient.GlyphBufferData>(testingTarget, "Should be an instance of GlyphBufferData type."); testingTarget.Dispose(); } tlog.Debug(tag, $"FontClientGlyphBufferDataConstructor END (OK)"); }