示例#1
0
 public void WriteShortTest()
 {
     // shorts are right-aligned to 6 spaces
     Assert.Equal("     1", DxfWriter.ShortAsString(1));
     Assert.Equal("    10", DxfWriter.ShortAsString(10));
     Assert.Equal("   100", DxfWriter.ShortAsString(100));
     Assert.Equal("  1000", DxfWriter.ShortAsString(1000));
     Assert.Equal(" 10000", DxfWriter.ShortAsString(10000));
     Assert.Equal("    -1", DxfWriter.ShortAsString(-1));
     Assert.Equal("   -10", DxfWriter.ShortAsString(-10));
     Assert.Equal("  -100", DxfWriter.ShortAsString(-100));
     Assert.Equal(" -1000", DxfWriter.ShortAsString(-1000));
     Assert.Equal("-10000", DxfWriter.ShortAsString(-10000));
 }