public void ConvertProducesExpectedOutput(string input, string expected) { var converter = new UpperTextConverter(); object output = null; var exception = Record.Exception(() => { output = converter.Convert(input, typeof(string), null, CurrentCulture); }); Assert.Null(exception); Assert.NotNull(output); Assert.Equal(expected, output); }
/// <summary> /// Init so nothing gets linked out /// </summary> public static void Init() { EmailValidatorBehavior.Init(); EmptyValidatorBehavior.Init(); BooleanToObjectConverter <string> .Init(); HexToColorConverter.Init(); InvertedBooleanConverter.Init(); UpperTextConverter.Init(); LowerTextConverter.Init(); HasDataConverter.Init(); MessagingService.Init(); MessagingServiceAlert.Init(); MessagingServiceQuestion.Init(); MessagingServiceChoice.Init(); }
/// <summary> /// Init this instance. /// </summary> public static void Init() { StandardImageCellRenderer.Init(); StandardTextCellRenderer.Init(); StandardViewCellRenderer.Init(); EntryLineRenderer.Init(); ListViewGroupedRenderer.Init(); EmailValidatorBehavior.Init(); EmptyValidatorBehavior.Init(); NavigationPageNoLineRenderer.Init(); BooleanToObjectConverter <string> .Init(); HexToColorConverter.Init(); InvertedBooleanConverter.Init(); UpperTextConverter.Init(); LowerTextConverter.Init(); HasDataConverter.Init(); MessagingService.Init(); MessagingServiceAlert.Init(); MessagingServiceQuestion.Init(); MessagingServiceChoice.Init(); }
public void Setup() { converter = new UpperTextConverter(); }