TestClient cleanup

This commit is contained in:
Cinder
2022-02-25 19:38:11 -06:00
parent 3fe7b935e7
commit 781a63c307
84 changed files with 385 additions and 408 deletions

View File

@@ -20,7 +20,7 @@ namespace OpenMetaverse.TestClient
if (args.Length < 1)
return Description;
string groupName = args.Aggregate(String.Empty, (current, t) => current + (t + " "));
string groupName = args.Aggregate(string.Empty, (current, t) => current + (t + " "));
groupName = groupName.Trim();
UUID groupUUID = Client.GroupName2UUID(groupName);
@@ -35,15 +35,15 @@ namespace OpenMetaverse.TestClient
Client.ReloadGroupsCache();
if (leftGroup)
return Client.ToString() + " has left the group " + groupName;
return Client + " has left the group " + groupName;
return "failed to leave the group " + groupName;
}
return Client.ToString() + " doesn't seem to be member of the group " + groupName;
return Client + " doesn't seem to be member of the group " + groupName;
}
void Groups_GroupLeft(object sender, GroupOperationEventArgs e)
{
Console.WriteLine(Client.ToString() + (e.Success ? " has left group " : " failed to left group ") + e.GroupID.ToString());
Console.WriteLine(Client + (e.Success ? " has left group " : " failed to left group ") + e.GroupID);
leftGroup = e.Success;
GroupsEvent.Set();