Exemplo n.º 1
0
        public void CreateSettingsRow(string leftDirectory, string rightDirectory, bool isUsed, string[] excludedExtensions)
        {
            var storage = new SettingsStorage("C:\\Test");
            var result  = storage.CreateSettingsRow(leftDirectory, rightDirectory, isUsed, excludedExtensions);

            Assert.Equal(leftDirectory, result.LeftDirectory.DirectoryPath);
            Assert.Equal(rightDirectory, result.RightDirectory.DirectoryPath);
            Assert.Equal(isUsed, result.IsUsed);
            Assert.Equal(excludedExtensions, result.ExcludedExtensions);

            //При создании не проверяется наличие директории, создаётся, как будто существующая.
            Assert.False(result.LeftDirectory.NotFound);
            Assert.False(result.RightDirectory.NotFound);
        }