public static bool TryParse(string input, out ClassWithTryParseMethod result)
 {
     result = new ClassWithTryParseMethod {
         Value = input
     };
     return(true);
 }
        public void TryCreate_TypeWithTryParseMethod_CanConvert()
        {
            // Act
            IConverter <string, ClassWithTryParseMethod> converter =
                StringToTConverterFactory.Instance.TryCreate <ClassWithTryParseMethod>();

            // Assert
            Assert.NotNull(converter);
            const string            expected = "abc";
            ClassWithTryParseMethod actual   = converter.Convert(expected);

            Assert.NotNull(actual);
            Assert.Same(expected, actual.Value);
        }
 public static bool TryParse(string input, out ClassWithTryParseMethod result)
 {
     result = new ClassWithTryParseMethod { Value = input };
     return true;
 }