You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: UnitTests/Models/AccountUnitTests.cs
+16-16Lines changed: 16 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -54,23 +54,23 @@ public void Case01_AddAccountUpdateSaved()
54
54
// When
55
55
account.Label=newAccountLabel;
56
56
account.Label=newAccountLabel;
57
-
expectedLogs.Push($"Information : {account}'s label has been set to {newAccountLabel}");
57
+
expectedLogs.Push($"Information : Account {oldAccountLabel} ({string.Join(", ",oldIdentifiers)})'s label has been set to {newAccountLabel}");
58
58
account.Identifiers=newIdentifiers;
59
59
account.Identifiers=newIdentifiers;
60
-
expectedLogs.Push($"Warning : Account {account}'s identifiers has been set to ({string.Join(", ",newIdentifiers)})");
61
-
expectedLogWarnings.Push($"Warning : Account {account}'s identifiers has been set to ({string.Join(", ",newIdentifiers)})");
60
+
expectedLogs.Push($"Warning : Account {newAccountLabel} ({string.Join(", ",oldIdentifiers)})'s identifiers has been set to ({string.Join(", ",newIdentifiers)})");
61
+
expectedLogWarnings.Push($"Warning : Account {newAccountLabel} ({string.Join(", ",oldIdentifiers)})'s identifiers has been set to ({string.Join(", ",newIdentifiers)})");
62
62
account.Password=newPassword;
63
63
account.Password=newPassword;
64
-
expectedLogs.Push($"Warning : Account {account}'s password has been updated");
65
-
expectedLogWarnings.Push($"Warning : Account {account}'s password has been updated");
64
+
expectedLogs.Push($"Warning : {account}'s password has been updated");
65
+
expectedLogWarnings.Push($"Warning : {account}'s password has been updated");
66
66
account.Notes=notes;
67
67
account.Notes=notes;
68
-
expectedLogs.Push($"Information : Account {account}'s notes has been set to {notes}");
68
+
expectedLogs.Push($"Information : {account}'s notes has been set to {notes}");
@@ -161,23 +161,23 @@ public void Case02_AddAccountUpdateAutoSave()
161
161
// When
162
162
account.Label=newAccountLabel;
163
163
account.Label=newAccountLabel;
164
-
expectedLogs.Push($"Information : {account}'s label has been set to {newAccountLabel}");
164
+
expectedLogs.Push($"Information : Account {oldAccountLabel} ({string.Join(", ",oldIdentifiers)})'s label has been set to {newAccountLabel}");
165
165
account.Identifiers=newIdentifiers;
166
166
account.Identifiers=newIdentifiers;
167
-
expectedLogs.Push($"Warning : Account {account}'s identifiers has been set to ({string.Join(", ",newIdentifiers)})");
168
-
expectedLogWarnings.Push($"Warning : Account {account}'s identifiers has been set to ({string.Join(", ",newIdentifiers)})");
167
+
expectedLogs.Push($"Warning : Account {newAccountLabel} ({string.Join(", ",oldIdentifiers)})'s identifiers has been set to ({string.Join(", ",newIdentifiers)})");
168
+
expectedLogWarnings.Push($"Warning : Account {newAccountLabel} ({string.Join(", ",oldIdentifiers)})'s identifiers has been set to ({string.Join(", ",newIdentifiers)})");
169
169
account.Password=newPassword;
170
170
account.Password=newPassword;
171
-
expectedLogs.Push($"Warning : Account {account}'s password has been updated");
172
-
expectedLogWarnings.Push($"Warning : Account {account}'s password has been updated");
171
+
expectedLogs.Push($"Warning : {account}'s password has been updated");
172
+
expectedLogWarnings.Push($"Warning : {account}'s password has been updated");
173
173
account.Notes=notes;
174
174
account.Notes=notes;
175
-
expectedLogs.Push($"Information : Account {account}'s notes has been set to {notes}");
175
+
expectedLogs.Push($"Information : {account}'s notes has been set to {notes}");
0 commit comments