标签:语法 contain nsstring res rtt either strong val string
assertThat
一种插入机制,语法如下:
assertThat([value], [matcher statement]);
例如:
assertThat(x, is(3));
assertThat(x, is(not(4)));
assertThat(responseString, either(containsString("color")).or(containsString("colour")));
assertThat(myList, hasItem("3"));
Usage and Idioms——Matchers and assertthat
标签:语法 contain nsstring res rtt either strong val string
原文地址:http://www.cnblogs.com/insist8089/p/6396939.html