Commit 1719df3
authored
Organize code into logical folders and namespaces (#40)
* refactor: organize code into logical folders and namespaces (#18)
- Created folder structure: Core, Abstractions, Services, Metadata, MakeMkv, Models, Utilities
- Updated all namespace declarations to match folder structure
- Renamed Metadata class to MetadataInfo to avoid namespace conflict
- Added GlobalUsings.cs to both main and test projects for cleaner imports
- All 112 tests pass successfully
- No functional changes, purely organizational refactoring
* Fix all formatting according to editorconfig
* refactor: rename vague class names for clarity
- MetadataInfo → ContentMetadata (metadata about media content)
- StreamInfo → MediaStream (audio/video/subtitle stream)
- FileAnalysis → MediaFileAnalysis (media file analysis)
All 112 tests pass successfully
* refactor: organize test files into logical folders
Mirrored main project structure:
- Core/: RipOptionsTests
- Metadata/: MetadataServiceTests, provider tests, TitleVariationGenerator tests
- MakeMkv/: MakeMkvProtocolTests
- Services/: DiscTypeDetectorTests
- Utilities/: FileNamingTests, DurationFormatterTests
Updated namespaces to match folder structure.
All 112 tests pass successfully.
* refactor: convert Assert statements to AwesomeAssertions
Replaced xUnit Assert.* calls with fluent AwesomeAssertions syntax:
- Assert.True/False → .Should().BeTrue/BeFalse()
- Assert.Equal → .Should().Equal()
- Assert.Contains → .Should().Contain()
- Assert.Null → .Should().BeNull()
- Assert.True(x >= y) → .Should().BeGreaterThanOrEqualTo()
- Assert.True(x <= y) → .Should().BeLessThanOrEqualTo()
- Assert.True(x > y) → .Should().BeGreaterThan()
- Assert.True(range) → .Should().BeInRange()
Added global using for AwesomeAssertions in test GlobalUsings.cs.
All 112 tests pass successfully.
* refactor: remove AAA comments from tests
Removed Arrange/Act/Assert comments as they were adding clutter
without providing significant value.
All 112 tests pass successfully.1 parent 155eb4b commit 1719df3
56 files changed
Lines changed: 603 additions & 255 deletions
File tree
- src
- RipSharp.Tests
- Core
- MakeMkv
- Metadata
- Services
- Utilities
- RipSharp
- Abstractions
- Core
- MakeMkv
- Metadata
- Models
- Services
- Utilities
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Large diffs are not rendered by default.
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
| 5 | + | |
4 | 6 | | |
| 7 | + | |
5 | 8 | | |
6 | 9 | | |
7 | | - | |
| 10 | + | |
8 | 11 | | |
9 | 12 | | |
10 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | | - | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| 15 | + | |
13 | 16 | | |
| 17 | + | |
14 | 18 | | |
15 | 19 | | |
16 | 20 | | |
17 | 21 | | |
18 | 22 | | |
19 | 23 | | |
20 | 24 | | |
| 25 | + | |
21 | 26 | | |
| 27 | + | |
22 | 28 | | |
23 | 29 | | |
24 | 30 | | |
Lines changed: 25 additions & 39 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | | - | |
| 6 | + | |
6 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
7 | 11 | | |
8 | 12 | | |
9 | | - | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
| |||
28 | 32 | | |
29 | 33 | | |
30 | 34 | | |
31 | | - | |
32 | 35 | | |
33 | 36 | | |
34 | 37 | | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
38 | | - | |
39 | 41 | | |
40 | 42 | | |
41 | | - | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
51 | | - | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | | - | |
| 55 | + | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | 63 | | |
65 | 64 | | |
66 | | - | |
67 | 65 | | |
68 | 66 | | |
69 | 67 | | |
| |||
74 | 72 | | |
75 | 73 | | |
76 | 74 | | |
77 | | - | |
78 | 75 | | |
79 | 76 | | |
80 | 77 | | |
81 | | - | |
82 | | - | |
| 78 | + | |
| 79 | + | |
83 | 80 | | |
84 | 81 | | |
85 | | - | |
86 | | - | |
| 82 | + | |
| 83 | + | |
87 | 84 | | |
88 | 85 | | |
89 | 86 | | |
90 | | - | |
91 | 87 | | |
92 | 88 | | |
93 | | - | |
94 | 89 | | |
95 | 90 | | |
96 | 91 | | |
| |||
101 | 96 | | |
102 | 97 | | |
103 | 98 | | |
104 | | - | |
105 | 99 | | |
106 | 100 | | |
107 | 101 | | |
108 | | - | |
109 | | - | |
110 | | - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
111 | 105 | | |
112 | 106 | | |
113 | 107 | | |
114 | | - | |
115 | 108 | | |
116 | 109 | | |
117 | | - | |
118 | 110 | | |
119 | 111 | | |
120 | 112 | | |
| |||
125 | 117 | | |
126 | 118 | | |
127 | 119 | | |
128 | | - | |
129 | 120 | | |
130 | 121 | | |
131 | 122 | | |
132 | | - | |
133 | | - | |
134 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
135 | 126 | | |
136 | 127 | | |
137 | 128 | | |
138 | | - | |
139 | 129 | | |
140 | 130 | | |
141 | | - | |
142 | | - | |
143 | | - | |
| 131 | + | |
| 132 | + | |
144 | 133 | | |
145 | 134 | | |
146 | 135 | | |
147 | 136 | | |
148 | 137 | | |
149 | 138 | | |
150 | 139 | | |
151 | | - | |
152 | 140 | | |
153 | 141 | | |
154 | 142 | | |
155 | | - | |
156 | | - | |
| 143 | + | |
| 144 | + | |
157 | 145 | | |
158 | 146 | | |
159 | 147 | | |
160 | | - | |
161 | 148 | | |
162 | 149 | | |
163 | | - | |
164 | | - | |
165 | | - | |
| 150 | + | |
| 151 | + | |
166 | 152 | | |
167 | 153 | | |
168 | 154 | | |
| |||
Lines changed: 8 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | | - | |
| 8 | + | |
8 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
9 | 13 | | |
10 | 14 | | |
11 | | - | |
| 15 | + | |
12 | 16 | | |
13 | 17 | | |
14 | 18 | | |
15 | 19 | | |
16 | 20 | | |
17 | 21 | | |
18 | | - | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
23 | 26 | | |
24 | | - | |
25 | 27 | | |
26 | 28 | | |
27 | | - | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
37 | | - | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | 43 | | |
45 | 44 | | |
46 | | - | |
47 | 45 | | |
48 | 46 | | |
49 | 47 | | |
| |||
53 | 51 | | |
54 | 52 | | |
55 | 53 | | |
56 | | - | |
57 | 54 | | |
58 | 55 | | |
59 | 56 | | |
60 | 57 | | |
61 | 58 | | |
62 | | - | |
63 | 59 | | |
64 | 60 | | |
65 | | - | |
66 | 61 | | |
67 | 62 | | |
68 | 63 | | |
69 | 64 | | |
70 | 65 | | |
71 | 66 | | |
72 | | - | |
73 | 67 | | |
74 | 68 | | |
75 | 69 | | |
76 | 70 | | |
77 | 71 | | |
78 | | - | |
79 | 72 | | |
80 | 73 | | |
81 | | - | |
82 | 74 | | |
83 | 75 | | |
84 | 76 | | |
85 | 77 | | |
86 | 78 | | |
87 | 79 | | |
88 | | - | |
89 | 80 | | |
90 | 81 | | |
91 | 82 | | |
92 | 83 | | |
93 | 84 | | |
94 | | - | |
95 | 85 | | |
96 | 86 | | |
97 | | - | |
98 | 87 | | |
99 | 88 | | |
100 | 89 | | |
101 | 90 | | |
102 | 91 | | |
103 | 92 | | |
104 | | - | |
105 | 93 | | |
106 | 94 | | |
107 | 95 | | |
| |||
113 | 101 | | |
114 | 102 | | |
115 | 103 | | |
116 | | - | |
117 | 104 | | |
118 | 105 | | |
119 | 106 | | |
120 | 107 | | |
121 | 108 | | |
122 | 109 | | |
123 | | - | |
124 | 110 | | |
125 | 111 | | |
126 | | - | |
127 | 112 | | |
128 | 113 | | |
129 | | - | |
| 114 | + | |
130 | 115 | | |
131 | 116 | | |
132 | 117 | | |
133 | 118 | | |
134 | 119 | | |
135 | | - | |
136 | 120 | | |
137 | 121 | | |
138 | 122 | | |
139 | 123 | | |
140 | 124 | | |
141 | | - | |
142 | 125 | | |
143 | 126 | | |
144 | | - | |
145 | 127 | | |
146 | 128 | | |
147 | 129 | | |
| |||
172 | 154 | | |
173 | 155 | | |
174 | 156 | | |
175 | | - | |
| 157 | + | |
176 | 158 | | |
177 | 159 | | |
178 | 160 | | |
| |||
0 commit comments