我想知道是否有办法获取XCode的<script>
var SendEmail = function () {
jQuery.ajax({
type: "POST",
url: "/Bestellung/SendMailToUser",
success: function (data) {
swal("Good job!", "Your order has been confirmed with success :)", "success");
window.location = "/Home/Index";
}
})
}
</script>
,XCTAssertTrue
和XCTAssertEqual
返回的值。
答案 0 :(得分:0)
XCTestCase有一个方法
- (void)recordFailureWithDescription:(NSString *)description inFile:(NSString *)filePath atLine:(NSUInteger)lineNumber expected:(BOOL)expected;
根据文档断言,使用此方法记录失败。也许您可以覆盖此方法来调用您的API。