示例#1
0
 public void WriteIntTest()
 {
     // ints are right-aligned to 9 spaces
     Assert.Equal("        1", DxfWriter.IntAsString(1));
     Assert.Equal("       10", DxfWriter.IntAsString(10));
     Assert.Equal("      100", DxfWriter.IntAsString(100));
     Assert.Equal("     1000", DxfWriter.IntAsString(1000));
     Assert.Equal("    10000", DxfWriter.IntAsString(10000));
     Assert.Equal("   100000", DxfWriter.IntAsString(100000));
     Assert.Equal("  1000000", DxfWriter.IntAsString(1000000));
     Assert.Equal(" 10000000", DxfWriter.IntAsString(10000000));
     Assert.Equal("100000000", DxfWriter.IntAsString(100000000));
     Assert.Equal("       -1", DxfWriter.IntAsString(-1));
     Assert.Equal("      -10", DxfWriter.IntAsString(-10));
     Assert.Equal("     -100", DxfWriter.IntAsString(-100));
     Assert.Equal("    -1000", DxfWriter.IntAsString(-1000));
     Assert.Equal("   -10000", DxfWriter.IntAsString(-10000));
     Assert.Equal("  -100000", DxfWriter.IntAsString(-100000));
     Assert.Equal(" -1000000", DxfWriter.IntAsString(-1000000));
     Assert.Equal("-10000000", DxfWriter.IntAsString(-10000000));
     Assert.Equal("-100000000", DxfWriter.IntAsString(-100000000));
 }