public void ByNameNumberTitleBlockViewAndLocation_BadArgs() { ElementBinder.IsEnabled = false; var famSymName = "E1 30x42 Horizontal"; var famName = "E1 30 x 42 Horizontal"; var titleBlock = FamilyType.ByFamilyAndName(Family.ByName(famName), famSymName); var famTyp = FamilyType.ByName("Kousa Dogwood - 10'"); var pt = Point.ByCoordinates(0, 1, 2); var famInst = FamilyInstance.ByPoint(famTyp, pt); var view = SectionView.ByBoundingBox(famInst.BoundingBox); var location = Point.ByCoordinates(0, 0, 0); var sheetName = "Poodle"; var sheetNumber = "A1"; Assert.Throws(typeof(ArgumentNullException), () => Sheet.ByNameNumberTitleBlockViewAndLocation(null, sheetNumber, titleBlock, view, location)); Assert.Throws(typeof(ArgumentNullException), () => Sheet.ByNameNumberTitleBlockViewAndLocation(sheetName, null, titleBlock, view, location)); Assert.Throws(typeof(ArgumentNullException), () => Sheet.ByNameNumberTitleBlockViewAndLocation(sheetName, sheetNumber, null, view, location)); Assert.Throws(typeof(ArgumentNullException), () => Sheet.ByNameNumberTitleBlockViewAndLocation(sheetName, sheetNumber, titleBlock, null, location)); Assert.Throws(typeof(ArgumentNullException), () => Sheet.ByNameNumberTitleBlockViewAndLocation(sheetName, sheetNumber, titleBlock, view, null)); }