Code highlighting produced by Actipro CodeHighlighter (freeware)CodeHighlighter/-->public class SayHelloTest{ @Test public void should_say_hello_when_given_your_name(){gotoPage("hello"); input("name","yuyijq"); click("sayButton"); assertThat(helloPage.getLabel(),is("hello yuyijq")); }}
Code highlighting produced by Actipro CodeHighlighter (freeware)CodeHighlighter/-->map.get(MOST_VIEWED.toString()); map.get(LAST_VIEWED.toString()); map.get(IS_LAST_ARTICLE.toString()); map.get(IS_SHOW_PICTURE.toString());
Code highlighting produced by Actipro CodeHighlighter (freeware)CodeHighlighter/-->public static class UnitTestExtensions{ public static T mockT(this object o,Type mockType) {return (T)NMock.Mock(mockType);} }