Esempio n. 1
0
 public void ToList()
 {
     double x = 23.4;
       double y = -11.0;
       double z = 0.0;
       double w = 0.3;
       VectorD v = new VectorD(new[] { x, y, z, w });
       List<double> values = v.ToList();
       Assert.AreEqual(x, values[0]);
       Assert.AreEqual(y, values[1]);
       Assert.AreEqual(z, values[2]);
       Assert.AreEqual(w, values[3]);
       Assert.AreEqual(4, values.Count);
 }