public void ConnectionString_SetValidName_ReturnsNewConnectionString()
    {
        DefaultConnectionString.SetName("NewValidName");

        DefaultConnectionString.ConnectionString.WriteToConsole();

        Assert.That(DefaultConnectionString.ConnectionString, Contains.Substring("NewDataSource"));
    }
 public void TearDown()
 {
     DefaultConnectionString.SetName("Default");
 }
    public void ConnectionString_SetInvalidName_ThrowsException()
    {
        DefaultConnectionString.SetName("BadConnectionStringName");

        Assert.That(() => DefaultConnectionString.ConnectionString, Throws.ArgumentException);
    }