Exemple #1
0
 public void ToList()
 {
     float x = 23.4f;
       float y = -11.0f;
       float z = 0.0f;
       float w = 0.3f;
       VectorF v = new VectorF(new[] { x, y, z, w });
       List<float> 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);
 }