public void Extensions_SetInitialCatalogName_Returns_Correct_Initial_Catalog() { // Arrange string connectionString = Convert.ToString(this.TestContext.DataRow["connectionString"], CultureInfo.InvariantCulture); string initialCatalog = Convert.ToString(this.TestContext.DataRow["initialCatalog"], CultureInfo.InvariantCulture); // Arrange DbConnectionStringBuilder value = new DbConnectionStringBuilder() { ConnectionString = connectionString, }; // Act value.SetInitialCatalogName(initialCatalog); // Assert string result = value.GetInitialCatalogName(); Assert.AreEqual(initialCatalog, result, "SetInitialCatalogName() did not set the correct value."); }