public void AssignValue_should_correctly_set_int_value() { var dto = new TorrentVideoFileInfo(); TorrenVideoFileParser.TryAssignValue(dto, x => x.Year, "1988"); Assert.Equal(dto.Year, 1988); }
public void AssignValue_should_correctly_set_string_value() { var dto = new TorrentVideoFileInfo(); TorrenVideoFileParser.TryAssignValue(dto, x => x.Audio, "audio_matched_value"); Assert.Equal(dto.Audio, "audio_matched_value"); }
public void AssignValue_should_correctly_set_bool_value() { var dto = new TorrentVideoFileInfo(); TorrenVideoFileParser.TryAssignValue(dto, x => x.Extended, "true"); Assert.Equal(dto.Extended, true); }