Example #1
0
        public void Creation2()
        {
            var headerIndex     = 0;
            var headerLocations = HEADER.Split(',').Select(x => new KeyValuePair <string, int>(x, headerIndex++)).ToDictionary(k => k.Key, v => v.Value);

            var record = new VolvoEarthworksCSVRecord(LINE, headerLocations);

            record.Should().BeEquivalentTo(new VolvoEarthworksCSVRecord
            {
                Time             = DateTime.SpecifyKind(new DateTime(2020, 3, 11, 14, 19, 7, 150), DateTimeKind.Utc),
                CellN_m          = double.Parse("7103556.75"),
                CellE_m          = double.Parse("452796.15"),
                PassNumber       = 1,
                DesignName       = "Undirfylling",
                Machine          = "SD115B",
                Speed_mph        = double.Parse("1.1408375079"),
                TargetPassCount  = 6,
                ValidPos         = true,
                Lift             = 1,
                LastEDV          = 0.0d,
                LastFreq_Hz      = 0,
                LastAmp_mm       = double.Parse("-1000.0"),
                TargThickness_FT = 0.0,
                MachineGear      = "Forward",
                VibeState        = "On",
                LastTemp_f       = double.Parse("32.0"),
                LastCMV          = 0,
                ICMVType         = 2,
                lineParsedOK     = true
            });
        }
Example #2
0
        public void Creation()
        {
            var record = new VolvoEarthworksCSVRecord();

            record.Should().NotBeNull();
        }