public void construct_and_create_directory() { var basePath = Directory.GetCurrentDirectory(); var repo = new StreamStateRepo(NullStandardLogger.Instance, basePath); Assert.Equal(basePath, repo.BasePath);; Assert.True(Directory.Exists(repo.BuildStreamStateDirectoryPath())); }
public void build_stream_state_directory_path() { var basePath = Directory.GetCurrentDirectory(); var repo = new StreamStateRepo(NullStandardLogger.Instance, basePath); var expectedPath = Path.Combine(basePath, StreamStateRepo.STREAM_PATH_PREFIX + Path.DirectorySeparatorChar); var actualPath = repo.BuildStreamStateDirectoryPath(); Assert.Equal(expectedPath, actualPath); }