public void GetCommonNumberTest_Invalid_NullInput() { // Arrange _commonNumberManager.Setup(x => x.GetCommonNumber(It.IsAny <IEnumerable <string> >())).Returns(""); // Act var responseObj = controller.GetCommonNumber(null); // Assert Assert.AreEqual(responseObj.StatusCode, HttpStatusCode.BadRequest); }