public void ConvertsToCorrectValue(Type type, string val, object expectedConvertedVal) { // Arrange. IConverter converter = new BooleanConverter(); // Act. object result; bool converted = converter.TryConvertTo(type, val, out result); // Assert. Assert.True(converted); Assert.IsType(type, result); Assert.Equal(result, expectedConvertedVal); }