public void Vect3SwizzleTest() { var v = new Vect3(5, 6, 7); Assert.AreEqual(new Vect3(5, 5, 5), v.Swizzle().XXX); Assert.AreEqual(new Vect3(6, 6, 6), v.Swizzle().YYY); Assert.AreEqual(new Vect3(7, 7, 7), v.Swizzle().ZZZ); Assert.AreEqual(new Vect3(7, 6, 5), v.Swizzle().ZYX); }
public void InvalidChar() { try { var v = new Vect3(5, 6, 7); var s = v.Swizzle().XXH; Assert.Fail(); // If it gets to this line, no exception was thrown } catch (Exception) { } }