@@ -116,6 +116,46 @@ function Test_ConvertMeetingMembersToMarkdown_SingleMember {
116116 Assert-AreEqual - Expected $expected - Presented $result - Comment " Single member should work correctly"
117117}
118118
119+ function Test_ConvertMeetingMembersToMarkdown_EmailOnlyFormat {
120+
121+ # Arrange
122+ $input = " john.doe@example.com, jane.smith@example.com, bob@alphatech.com"
123+
124+ # Act
125+ $result = Convert-NotesMeetingMembersToMarkdown - MeetingMembers $input
126+
127+ # Assert
128+ $expected = @"
129+ - Alphatech (1)
130+ - bob@alphatech.com
131+ - Example (2)
132+ - jane.smith@example.com
133+ - john.doe@example.com
134+ "@
135+ Assert-AreEqual - Expected $expected - Presented $result - Comment " Email-only format entries should be included and grouped by company"
136+ }
137+
138+ function Test_ConvertMeetingMembersToMarkdown_MixedEmailFormats {
139+
140+ # Arrange
141+ $input = " Alice Johnson <alice.johnson@alphatech.com>, bob.smith@alphatech.com, `" Charlie Chen`" <charlie.chen@betasoft.com>, david@betasoft.com"
142+
143+ # Act
144+ $result = Convert-NotesMeetingMembersToMarkdown - MeetingMembers $input
145+
146+ # Assert
147+ $expected = @"
148+ - Alphatech (2)
149+ - Alice Johnson <alice.johnson@alphatech.com>
150+ - bob.smith@alphatech.com
151+ - Betasoft (2)
152+ - "Charlie Chen" <charlie.chen@betasoft.com>
153+ - david@betasoft.com
154+ "@
155+ Assert-AreEqual - Expected $expected - Presented $result - Comment " Mixed email formats should work together, sorted alphabetically by company and member"
156+ }
157+
158+
119159function Test_ConvertMeetingsMembersToMarkdown_Big_sample {
120160
121161 $imput = @"
@@ -124,26 +164,35 @@ function Test_ConvertMeetingsMembersToMarkdown_Big_sample{
124164
125165 $result = Convert-NotesMeetingMembersToMarkdown - MeetingMembers $imput
126166
127- Assert-AreEqual - Presented $result - Expected @"
167+ $expected = @"
128168- Alphatech (5)
129169 - "Grace (AlphaTech) Garcia" <grace.garcia@alphatech.com>
130170 - "Henry Harris" <henry.harris@alphatech.com>
131171 - "Kevin Kim" <kevin.kim@alphatech.com>
132172 - "Laura Lewis" <laura.lewis@alphatech.com>
133173 - "Mark Martinez" <mark.martinez@alphatech.com>
134- - Betasoft (9 )
174+ - Betasoft (13 )
135175 - "Amy Adams (She/Her)" <amy.adams@betasoft.com>
136176 - "Bob Brown" <bob.brown@betasoft.com>
137177 - "Charlie Chen" <charlie.chen@betasoft.com>
138178 - "David Dennis" <david.dennis@betasoft.com>
179+ - david.davis@betasoft.com
180+ - emma.edwards@betasoft.com
181+ - george.garcia@betasoft.com
139182 - "Iris Ingram" <iris.ingram@betasoft.com>
140183 - "Jack Johnson" <jack.johnson@betasoft.com>
141184 - "James Jackson" <james.jackson@betasoft.com>
142185 - "Jennifer Jones" <jennifer.jones@betasoft.com>
143186 - "Kyle Knight" <kyle.knight@betasoft.com>
187+ - lisa.lee@betasoft.com
188+ - Bookings (1)
189+ - george.garcia@bookings.betasoft.com
144190- Deltalab (3)
145191 - "Alice Anderson" <alice.anderson@deltalab.com>
146192 - "Emma Evans, Eric" <emma.evans@deltalab.com>
147193 - "Frank Fields, Fiona" <frank.fields@deltalab.com>
148194"@
195+
196+ Assert-AreEqual - Presented $result - Expected $expected
197+
149198}
0 commit comments