The hypercubes are a famous class of networks for multiprocessor systems and the unidirectional hypercubes are hypercube interconnection topologies with simplex unidirectional links. Under the classic PMC model, each processor in a multiprocessor system tests a subset of its neighbors. The collection of tests in this system can be modeled by a directed graph. The diagnosability of a system is the maximum number of faulty processors that the system may identify according to the outcomes of the tests, and the g-good-neighbor diagnosability is a more accurate indicator than the diagnosability. In this paper, we first determine the 1-good-neighbor connectivity of unidirectional hypercubes and then determine the diagnosability and 1-good-neighbor diagnosability of hypercube networks when unidirectional hypercubes are used as the collection of tests under the PMC model.