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);
        }
示例#2
0
        /// <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();
        }
示例#3
0
        /// <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();
        }
示例#4
0
 public void Setup()
 {
     converter = new UpperTextConverter();
 }