public void AddFile_AddNull_NoException() { // Arrange var filesInfoProject = new PackageData(); FileData file = null; // Act filesInfoProject.AddFile(file); filesInfoProject?.Dispose(); }
public void AddFile_AddOnePositions() { // Arrange var filesInfoProject = new PackageData(); var file = DefaultFileData.FileDataToTestTwoPositions[0]; // Act filesInfoProject.AddFile(file); // Assert Assert.AreEqual(filesInfoProject.FilesData.Count, 1); Assert.AreSame(filesInfoProject.FilesData[filesInfoProject.FilesData.Count - 1], file); filesInfoProject?.Dispose(); }