public void SetUp()
        {
            _cultureEnUs = new CultureInfo("en-US");
            _cultureDeDe = new CultureInfo("de-DE");

            _cultureBackup = Thread.CurrentThread.CurrentCulture;
            Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;

            StubStringUtility.ClearCache();
        }
        public void GetParseMethodFromTypeForInt32()
        {
            MethodInfo parseMethod = StubStringUtility.GetParseMethodFromType(_int32);

            Assert.That(parseMethod, Is.Not.Null);
            Assert.That(parseMethod.Name, Is.EqualTo("Parse"));
            Assert.That(parseMethod.GetParameters().Length, Is.EqualTo(1));
            Assert.That(parseMethod.GetParameters()[0].ParameterType, Is.EqualTo(typeof(string)));
            Assert.That(parseMethod.ReturnType, Is.EqualTo(typeof(int)));
            Assert.That(parseMethod.IsPublic, Is.True);
            Assert.That(parseMethod.IsStatic, Is.True);
        }
 public void GetParseMethodWithFormatProviderFromTypeForObject()
 {
     Assert.That(StubStringUtility.GetParseMethodWithFormatProviderFromType(_object), Is.Null);
 }
 public void GetParseMethodForObjectWithoutException()
 {
     Assert.That(StubStringUtility.GetParseMethod(_object, false), Is.Null);
 }
 public void GetParseMethodForObjectWithException()
 {
     StubStringUtility.GetParseMethod(_object, true);
 }