コード例 #1
0
        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);
        }
コード例 #2
0
        public void CallGetErrorMessage_WhenDocumentNull__ShouldReturnNull()
        {
            var result = DocumentHelpers.GetErrorMessage(null);

            Assert.Null(result);
        }