public void InitializeTestMethod() { using (DataManagementSetupTest _ndm = new DataManagementSetupTest { BindingFactory = new BindingFactory(), ConfigurationFactory = new ConfigurationFactory(), EncodingFactory = new EncodingFactory(), MessageHandlerFactory = new MessageHandlerFactoryTest() } ) { Assert.IsNull(_ndm.MessageHandlersCollection); _ndm.TestStart(); Assert.AreEqual <int>(3, _ndm.MessageHandlersCollection.Count()); _ndm.Dispose(); ((MessageHandlerFactoryTest)_ndm.MessageHandlerFactory).AssertConsistency(); } }
public void RunTestMethod() { using (DataManagementSetupTest _ndm = new DataManagementSetupTest()) _ndm.TestStart(); }