using dopt.DeltaBarth; namespace dopt.DeltaBarth.Tests { [TestClass] public sealed class PluginTest { [TestMethod] public void ConstructInitialiseFinalise_Test() { var test = new Plugin(); test.Shutdown(); } [TestMethod] public void Set_and_Obtain_Credentials_Test() { var test = new Plugin(); string user = "user", password = "password", database = "DB1", mandant = "mandant1"; test.SetCredentials(user, password, database, mandant); var creds = test.GetCredentials(); Console.WriteLine($"Result from Python session was: {creds}"); Assert.AreEqual(user, creds.user_name); Assert.AreEqual(password, creds.password); Assert.AreEqual(database, creds.database); Assert.AreEqual(mandant, creds.mandant); test.Shutdown(); } } }