public static void MetadataApiException_Default_Constructor_Initializes_Exception() { // Act MetadataApiException target = new MetadataApiException(); // Assert Assert.Null(target.InnerException); Assert.Equal("An error was returned by the Electronic Updates Metadata REST API.", target.Message); }
public static void MetadataApiException_Constructor_With_Message_Initializes_Exception() { // Arrange string message = Guid.NewGuid().ToString(); // Act MetadataApiException target = new MetadataApiException(message); // Assert Assert.Null(target.InnerException); Assert.Equal(message, target.Message); }