public void Test2() { var getall = AvailableContext.GetAll(this, new object()); if (!object.ReferenceEquals(getall, null)) { Assert.Pass(); } //if the response it null , that means the request has fired a no context was found that why. Assert.Pass(); }