Пример #1
0
        public void GetConnection_GivenInvalidConfigKeyThrowsSqlConnectionException()
        {
            // Arrange
            const string configKey = "asdfsd";

            // Act
            ConcreteSqlConnections.ExecuteGetConnectionMethod(configKey);

            // Assert
            Assert.AreEqual(0, 0);
        }
Пример #2
0
        public void GetConnection_GivenValidAppSettingKeyNotInConnectionStringsReturnsSqlConnection()
        {
            // Arrange
            const string configKey = "AppConnectionTesting";

            // Act
            var actual = ConcreteSqlConnections.ExecuteGetConnectionMethod(configKey);

            // Assert
            Assert.AreEqual("", actual.ConnectionString); //TODO: add a connection string matching app.config
        }