Esempio n. 1
0
        public void BinaryReaderWriter()
        {
            Guid newGuid = Guid.NewGuid();
            var  dd      = new DesignDescriptor(newGuid, "folder", "filename");

            TestBinary_ReaderWriterHelper.RoundTripSerialise(dd);
        }
Esempio n. 2
0
        public void BinaryReadWrite()
        {
            var ss = new TRex.SurveyedSurfaces.SurveyedSurfaces();

            ss.AddSurveyedSurfaceDetails(Guid.NewGuid(), new DesignDescriptor(Guid.NewGuid(), "Folder", "FileName"), DateTime.UtcNow, BoundingWorldExtent3D.Full());

            TestBinary_ReaderWriterHelper.RoundTripSerialise(ss);
        }
Esempio n. 3
0
        public void Test_ReadWriteBinary()
        {
            var l  = new MachinesList();
            var m  = l.CreateNew("Machine1", "HardwareID1", MachineType.Dozer, DeviceTypeEnum.SNM940, false, Guid.NewGuid());
            var m2 = l.CreateNew("Machine2", "HardwareID2", MachineType.Dozer, DeviceTypeEnum.SNM940, true, Guid.Empty);

            TestBinary_ReaderWriterHelper.RoundTripSerialise(l);
        }
Esempio n. 4
0
        public void ReadWriteBinary()
        {
            var ssID = Guid.NewGuid();
            var ddID = Guid.NewGuid();
            var date = DateTime.UtcNow;

            var ss = new TRex.SurveyedSurfaces.SurveyedSurface(
                ssID,
                new DesignDescriptor(ddID, "Folder", "FileName"),
                date,
                new BoundingWorldExtent3D(1, 2, 3, 4, 0, 10));

            TestBinary_ReaderWriterHelper.RoundTripSerialise(ss);
        }
Esempio n. 5
0
        public void ReadWriteBinary()
        {
            var clientGrid = ClientLeafSubGridFactoryFactory.CreateClientSubGridFactory().GetSubGrid(GridDataType.CellPasses) as ClientCellProfileAllPassesLeafSubgrid;

            clientGrid.Cells[10, 10] = new ClientCellProfileAllPassesLeafSubgridRecord
            {
                TotalPasses = 2,
                CellPasses  = new []
                {
                    new ClientCellProfileLeafSubgridRecord
                    {
                        Height = 11.1f
                    },
                    new ClientCellProfileLeafSubgridRecord
                    {
                        Height = 12.2f
                    }
                }
            };

            TestBinary_ReaderWriterHelper.RoundTripSerialise(clientGrid);
        }
Esempio n. 6
0
        public void Test_ReadWriterBinary()
        {
            var m = TestMachine();

            TestBinary_ReaderWriterHelper.RoundTripSerialise(m);
        }
Esempio n. 7
0
        public void BinaryReaderWriter()
        {
            var clientGrid = TestSubGrid();

            TestBinary_ReaderWriterHelper.RoundTripSerialise(clientGrid);
        }
Esempio n. 8
0
        public void BinaryReaderWriter()
        {
            var cp1 = new BoundingWorldExtent3D(1, 2, 3, 4, 5, 6);

            TestBinary_ReaderWriterHelper.RoundTripSerialise(cp1);
        }