You are using “Legacy” API of the driver which is present only for backward compatibility purposes.
Consider using the regular API:
var client = new MongoClient("mongodb://localhost:27017"); // mind the spaces in the connection string
var database = client.GetDatabase("Uni_Training");
var collectionNames = database.ListCollectionNames().ToList(); // mind the .ToList() call