public void ByCoordinates_ValidInput() { var famSym = FamilySymbol.ByName("Box"); var famInst = FamilyInstance.ByCoordinates(famSym, 0, 1, 2); Assert.NotNull(famInst); var position = famInst.Location; Assert.AreEqual(0, position.X); Assert.AreEqual(1, position.Y); Assert.AreEqual(2, position.Z); }
public void ByCoordinates_NullFamilySymbol() { var pt = Point.ByCoordinates(0, 1, 2); Assert.Throws(typeof(System.ArgumentNullException), () => FamilyInstance.ByCoordinates(null, 0, 1, 2)); }