コード例 #1
0
            public void ThenThrowExcpetionGetParameterTest()
            {
                //Arrange
                _provider       = (DataProvider)1000;
                _classUnderTest = new DbManagerFactoryTesteable(_provider);
                //Act

                _classUnderTest.GetParameter();
                //Assert
                Assert.Fail("ExpectedException InvalidEnumArgumentException");
            }
コード例 #2
0
            public void ThenThrowExcpetionGetTransactionTest()
            {
                //Arrange
                _classUnderTest = new DbManagerFactoryTesteable(DataProvider.SqlServer);

                //Act

                _classUnderTest.GetTransaction();
                //Assert
                Assert.Fail("ExpectedException InvalidEnumArgumentException");
            }
コード例 #3
0
 public WhenSqlDataProvider()
 {
     _provider       = DataProvider.SqlServer;
     _classUnderTest = new DbManagerFactoryTesteable(_provider);
 }