public void ParseInt32Test(string actual, object expected) { var actualResult = ParseUtility.ParseInt32( (object)null, new FuncGetter<object>((carrier, name) => new[] { actual }), string.Empty); actualResult.Should().Be((int?)expected); actualResult = ParseUtility.ParseInt32( (object)null, new FuncGetter<object>((carrier, name) => new List<string> { actual }), string.Empty); actualResult.Should().Be((int?)expected); }