public void Setup() { lzWEncoder = new LzWEncoder(); fileReaderMock = new Mock <IFileReader>(); fileWriterMock = new Mock <IFileWriter>(); onFullDictionaryOption = OnFullDictionaryOption.Empty; numberOfBitsForIndex = 12; }
public void Setup() { var dependencyResolver = new DependencyResolver(); lzWEncoder = (LzWEncoder)dependencyResolver.GetObject <ILzWEncoder>(); filePathFile = $"{Environment.CurrentDirectory}\\{Constants.FileName}"; filePathEncodedFile = $"{Environment.CurrentDirectory}\\{Constants.FileName}.lzw"; File.WriteAllText(filePathFile, Constants.FileContents); }
public UserControlLzW() { InitializeComponent(); var dependencyResolver = new DependencyResolver(); lzWEncoder = (LzWEncoder)dependencyResolver.GetObject <ILzWEncoder>(); lzWDecoder = (LzWDecoder)dependencyResolver.GetObject <ILzWDecoder>(); UpdateButtonsEnabledProperty(); }
public void Setup() { var dependencyResolver = new DependencyResolver(); lzWEncoder = (LzWEncoder)dependencyResolver.GetObject <ILzWEncoder>(); lzWDecoder = (LzWDecoder)dependencyResolver.GetObject <ILzWDecoder>(); filePathSource = $"{Environment.CurrentDirectory}\\temp.png"; filePathEncodedFile = $"{Environment.CurrentDirectory}\\temp.png.lzw"; filePathDecodedFile = $"{Environment.CurrentDirectory}\\temp.png.lzw.png"; CreateInitialFile(); }