public FileDescription(MultiFileInfo file, string torrentName) : this(torrentName) { RelativePath = string.Join("\\", file.Path.Take(file.Path.Count - 1)); FileName = file.FileName; Length = file.FileSize; BaseValidation(); }
public void FullPathUtf8_PathUtf8IsNull_ShouldNotThrowException(MultiFileInfo multiFileInfo) { // Arrange multiFileInfo.PathUtf8 = null; // Act Action act = () => { var _ = multiFileInfo.FullPathUtf8; }; // Assert act.Should().NotThrow(); multiFileInfo.FullPathUtf8.Should().BeNull(); }