Created
October 4, 2013 15:46
-
-
Save djfr/6828066 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[TestMethod] | |
public void Ensure_InsertDocument_FaultContracts_AreAllMapped() | |
{ | |
var targetOperation = typeof (IDocumentService).GetMethod( | |
"InsertDocument", | |
new[] | |
{ | |
typeof (string), | |
typeof (string) | |
}); | |
var result = targetOperation.CheckFaultContractMapping<IDocumentService, ServiceUnavailableException>( | |
m => DocumentClient.InsertDocument(string.Empty, string.Empty, m.Object)); | |
Assert.IsNull(result, "The type {0} used to detail a FaultContract isn't being properly handled on the Service client", result); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment