本文整理汇总了C#中Pen.Write方法的典型用法代码示例。如果您正苦于以下问题:C# Pen.Write方法的具体用法?C# Pen.Write怎么用?C# Pen.Write使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Pen
的用法示例。
在下文中一共展示了Pen.Write方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: IsWorkMethodTest
public void IsWorkMethodTest()
{
Pen pen = new Pen(5);
pen.Write("12345");
Assert.IsFalse(pen.IsWork());
}
示例2: WritePartialContainer2ParamsTest
public void WritePartialContainer2ParamsTest()
{
Pen pen = new Pen(10, 1.1);
String word = pen.Write("12345");
Assert.AreEqual(word, "12345");
}
示例3: WriteEmptyTest
public void WriteEmptyTest()
{
Pen pen = new Pen(5);
pen.Write("12345");
Assert.AreEqual(pen.Write("123"), "");
}
示例4: WritePartialContainer1ParamTest
public void WritePartialContainer1ParamTest()
{
Pen pen = new Pen(6);
pen.Write("12345");
Assert.AreEqual(pen.Write("6789"), "6");
}
示例5: WriteAllContainer1ParamTest
public void WriteAllContainer1ParamTest()
{
Pen pen = new Pen(6);
String word = pen.Write("123456");
Assert.AreEqual(word, "123456");
}