public SetHtmlString ( string html ) : void | ||
html | string | |
Результат | void |
public void Should_return_false_when_web_call_returns_false() { fakeHttpFetcher.SetHtmlString("False"); var wasValid = true; validator.Validate("http://example.com", "", valid => wasValid = valid); Assert.False(wasValid); }
public void Should_correctly_commit_message() { downloader.SetHtmlString("TestMessage\f" + DateTime.Now.ToString("yyyyMMddHHmmss") + "\fTestUser\f1\fhttp://www.example.com/img.png"); service.Get10Latest(r => Assert.AreEqual("TestMessage", r.First().Message)); }
public void Should_correctly_parse_build_name() { downloader.SetHtmlString("TestProject\fTestUser\fWorking\f20110722112921"); service.Load(r => Assert.AreEqual("TestProject", r.First().ProjectName)); }