public void CallGetErrorMessage_WhenDocumentHasInformation_ShouldCorrectMessage(string key, string value, string exptected) { var fakeResponseDoc = new Document(); fakeResponseDoc.set(key, value); var result = DocumentHelpers.GetErrorMessage(fakeResponseDoc); Assert.Equal(exptected, result); }
public void CallGetErrorMessage_WhenDocumentNull__ShouldReturnNull() { var result = DocumentHelpers.GetErrorMessage(null); Assert.Null(result); }