fixing more test exceptions

This commit is contained in:
andy 2022-06-28 07:49:52 +01:00
parent 6a4d83a6d6
commit e2fcc58877

View File

@ -183,16 +183,22 @@ namespace Selector
break; break;
case (not null, not null): // continuing non-null case (not null, not null): // continuing non-null
if (!Live.Name.Equals(Previous.Name)) if((Previous, Live) is ({ Name: not null }, { Name: not null }))
{ {
Logger.LogDebug("Name changed: {previous} -> {current}", Previous.SnapshotId, Live.SnapshotId); if (!Live.Name.Equals(Previous.Name))
OnNameChanged(GetEvent()); {
Logger.LogDebug("Name changed: {previous} -> {current}", Previous.SnapshotId, Live.SnapshotId);
OnNameChanged(GetEvent());
}
} }
if (!Live.Description.Equals(Previous.Description)) if ((Previous, Live) is ({ Description: not null }, { Description: not null }))
{ {
Logger.LogDebug("Description changed: {previous} -> {current}", Previous.SnapshotId, Live.SnapshotId); if (!Live.Description.Equals(Previous.Description))
OnDescriptionChanged(GetEvent()); {
Logger.LogDebug("Description changed: {previous} -> {current}", Previous.SnapshotId, Live.SnapshotId);
OnDescriptionChanged(GetEvent());
}
} }
break; break;