Example #1
0
        public void ToStringlyTyped_ClassWithCustomParseMethod_ParsesString()
        {
            UppercasedString actual = GetStringly("Nyan Cat");

            Assert.That(actual.Value, Is.EqualTo("NYAN CAT"));
        }
Example #2
0
 public static bool TryParse(string value, out UppercasedString result)
 {
     result = new UppercasedString(value);
     return(true);
 }