public void GetParseMethodWithFormatProviderFromTypeForInt32() { MethodInfo parseMethod = StubStringUtility.GetParseMethodWithFormatProviderFromType(_int32); Assert.That(parseMethod, Is.Not.Null); Assert.That(parseMethod.Name, Is.EqualTo("Parse")); Assert.That(parseMethod.GetParameters().Length, Is.EqualTo(2)); Assert.That(parseMethod.GetParameters()[0].ParameterType, Is.EqualTo(typeof(string))); Assert.That(parseMethod.GetParameters()[1].ParameterType, Is.EqualTo(typeof(IFormatProvider))); 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); }