public Execute ( StringBuilder>.Dictionary |
||
values | StringBuilder>.Dictionary | |
theWorkspace | IWorkspace | |
return | StringBuilder |
public void FetchCurrentServerLogExecuteWithNonExistingLogExpectedReturnsEmptyString() { var serverLogPath = Path.Combine(_testDir, string.Format("ServerLog_{0}.txt", Guid.NewGuid())); var esb = new FetchCurrentServerLog(serverLogPath); var actual = esb.Execute(null, null); var msg = ConvertToMsg(actual); Assert.AreEqual(string.Empty, msg.Message.ToString()); }
public void FetchCurrentServerLogExecuteWithExistingLogExpectedReturnsContentsOfLog() { const string Expected = "Hello world"; var serverLogPath = Path.Combine(_testDir, string.Format("ServerLog_{0}.txt", Guid.NewGuid())); File.WriteAllText(serverLogPath, Expected); var esb = new FetchCurrentServerLog(serverLogPath); var actual = esb.Execute(null, null); var msg = ConvertToMsg(actual); Assert.AreEqual(Expected, msg.Message.ToString()); }