public void TestArray() { var arr = new Sara.Array(42, Sara.Type.Float); Assert.AreEqual(Sara.Type.Float, arr.Of); Assert.AreEqual(42, arr.Size); Assert.AreEqual("[42] float", arr.ToString()); Assert.AreEqual(8 * 42, arr.Width); }
public void TestArray() { var arr = new Sara.Array(42, Sara.Type.Float); Assert.AreEqual(Sara.Type.Float, arr.Of); Assert.AreEqual(42, arr.Size); Assert.AreEqual("[42] float", arr.ToString()); Assert.AreEqual(8 * 42, arr.Width); }