Exemplo n.º 1
0
 /// <summary>
 /// Создает сетевой источник данных
 /// </summary>
 /// <param name="_axis">выбранная ось вращения</param>
 /// <param name="_ipAddress">IP-адрес сервера</param>
 public SourceNetwork(RotationAxis _axis, IPAddress _ipAddress) : base()
 {
     IsWorking = false;
     axis = _axis;
     thread.Name = "SourceNetwork";
     ipAddress = _ipAddress;
     deserializer = new DeserializerCustom();
     mutex = new object();
 }
        public void DeserializerCustom_Do()
        {
            Deserializer deserializer = new DeserializerCustom();

            Vector3d vector = deserializer.Do("<3.5;0.8;-30.5>");

            Assert.IsTrue(ExtraMath.EqualValue(vector.X, 3.5));
            Assert.IsTrue(ExtraMath.EqualValue(vector.Y, 0.8));
            Assert.IsTrue(ExtraMath.EqualValue(vector.Z, -30.5));
        }