File: TestVariableRecord.cs

package info (click to toggle)
liblas 1.8.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 7,888 kB
  • ctags: 4,614
  • sloc: cpp: 31,630; xml: 4,195; python: 2,928; ansic: 2,439; cs: 2,411; sh: 143; makefile: 37
file content (46 lines) | stat: -rwxr-xr-x 1,140 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Liblas;
using System.Diagnostics;

namespace swig_test
{
   static internal class TestVariableRecord
   {
      static public void Test(VariableRecord vlr)
      {
         // BUG: padding bool doesn't work?
         Debug.Assert(vlr.GetUserId(false) == "laszip encoded");
         Debug.Assert(vlr.GetRecordId() == 22204);
         Debug.Assert(vlr.GetRecordLength() == 52);
         Debug.Assert(vlr.GetDescription(true) == "encoded for sequential access");

         // BUG: need to check the data contents
      }

      static public void Test_A(VectorVariableRecord vlrs)
      {
         Debug.Assert(vlrs.Count == 0);
      }

      static public void Test_B(VectorVariableRecord vlrs)
      {
         Debug.Assert(vlrs.Count == 1);

         VariableRecord vlr = vlrs[0];

         Test(vlr);
      }

      static public void Test_T(VectorVariableRecord vlrs)
      {
         Debug.Assert(vlrs.Count == 1);

         VariableRecord vlr = vlrs[0];
         Test(vlrs[0]);
      }
   }
}