public void TryParseTest(string s, Type type, object expectedResult, bool expectedSuccess) { var success = NativeComponentRenderer.TryParse(type, s, out var result); Assert.Multiple(() => { Assert.AreEqual(expectedResult, result); Assert.AreEqual(expectedSuccess, success); }); }