private static void TrySetStringProperty(Action <string> propertySetter, string record) { if (W3CParseUtils.RecordContainsData(record)) { propertySetter(record); } }
private static void TrySetIntProperty(Action <int?> propertySetter, string record) { if (W3CParseUtils.RecordContainsData(record)) { propertySetter(int.Parse(record)); } }
private static void TrySetLongProperty(Action <long?> propertySetter, string record) { if (W3CParseUtils.RecordContainsData(record)) { propertySetter(long.Parse(record)); } }
public void ReturnsTrueForRecordWithData(string record) { bool actual = W3CParseUtils.RecordContainsData(record); Assert.True(actual); }
public void ReturnsFalseForRecordWithoutData(string record) { bool actual = W3CParseUtils.RecordContainsData(record); Assert.False(actual); }