414 references to CommunicationState
Binding.ReliableSession.IntegrationTests (2)
Binding.UDS.IntegrationTests (2)
Client.ChannelLayer.IntegrationTests (2)
Client.ClientBase.IntegrationTests (38)
ClientBaseTests.4.0.0.cs (35)
167Assert.Equal(CommunicationState.Created, client.State);
171Assert.Equal(CommunicationState.Opened, client.State);
176Assert.Equal(CommunicationState.Opened, client.State);
182Assert.Equal(CommunicationState.Closed, client.State);
191Assert.Equal(CommunicationState.Closed, client.State);
219Assert.True(CommunicationState.Created == client.State,
222Assert.True(CommunicationState.Created == factory.State,
241Assert.True(CommunicationState.Opened == client.State,
244Assert.True(CommunicationState.Opened == factory.State,
247Assert.True(CommunicationState.Opened == ((ICommunicationObject)serviceProxy).State,
256Assert.True(CommunicationState.Closed == client.State,
260Assert.True(CommunicationState.Closed == ((ICommunicationObject)serviceProxy).State,
264Assert.True(CommunicationState.Closed == factory.State,
294Assert.True(CommunicationState.Created == client.State,
297Assert.True(CommunicationState.Created == factory.State,
317Assert.True(CommunicationState.Opened == client.State,
320Assert.True(CommunicationState.Opened == factory.State,
323Assert.True(CommunicationState.Opened == ((ICommunicationObject)serviceProxy).State,
333Assert.True(CommunicationState.Closed == client.State,
337Assert.True(CommunicationState.Closed == ((ICommunicationObject)serviceProxy).State,
341Assert.True(CommunicationState.Closed == factory.State,
373Assert.True(CommunicationState.Created == client.State,
376Assert.True(CommunicationState.Created == factory.State,
396Assert.True(CommunicationState.Opened == client.State,
399Assert.True(CommunicationState.Opened == factory.State,
402Assert.True(CommunicationState.Opened == ((ICommunicationObject)serviceProxy).State,
412Assert.True(CommunicationState.Closed == client.State,
416Assert.True(CommunicationState.Closed == ((ICommunicationObject)serviceProxy).State,
420Assert.True(CommunicationState.Closed == factory.State,
462Assert.True(CommunicationState.Closed == client.State,
466Assert.True(CommunicationState.Closed == ((ICommunicationObject)serviceProxy).State,
470Assert.True(CommunicationState.Closed == factory.State,
513Assert.True(CommunicationState.Closed == client.State,
517Assert.True(CommunicationState.Closed == ((ICommunicationObject)serviceProxy).State,
521Assert.True(CommunicationState.Closed == factory.State,
Client.ExpectedExceptions.IntegrationTests (2)
Client.TypedClient.IntegrationTests (3)
Contract.Service.IntegrationTests (13)
Infrastructure.Common (2)
ScenarioTests.Common.Tests (2)
Security.TransportSecurity.IntegrationTests (1)
System.ServiceModel (1)
System.ServiceModel.Federation (13)
System.ServiceModel.Http (2)
System.ServiceModel.NetFramingBase (1)
System.ServiceModel.Primitives (250)
System.ServiceModel.Primitives.Tests (63)
Channels\CommunicationObjectTest.cs (27)
103Assert.True(mco.State == CommunicationState.Closed,
188Assert.True(data.StateAfterCreate == CommunicationState.Created,
192Assert.True(data.StateEnterOnOpening == CommunicationState.Opening,
195Assert.True(data.StateLeaveOnOpening == CommunicationState.Opening,
199Assert.True(data.StateEnterOnOpen == CommunicationState.Opening,
202Assert.True(data.StateLeaveOnOpen == CommunicationState.Opening,
206Assert.True(data.StateEnterOnOpened == CommunicationState.Opening,
209Assert.True(data.StateLeaveOnOpened == CommunicationState.Opened,
213Assert.True(data.StateEnterOnClosing == CommunicationState.Closing,
216Assert.True(data.StateLeaveOnClosing == CommunicationState.Closing,
220Assert.True(data.StateEnterOnClose == CommunicationState.Closing,
223Assert.True(data.StateLeaveOnClose == CommunicationState.Closing,
227Assert.True(data.StateEnterOnClosed == CommunicationState.Closing,
230Assert.True(data.StateLeaveOnClosed == CommunicationState.Closed,
255Assert.True(data.StateAfterCreate == CommunicationState.Created,
259Assert.True(data.StateEnterOnOpening == CommunicationState.Opening,
262Assert.True(data.StateLeaveOnOpening == CommunicationState.Opening,
266Assert.True(data.StateEnterOnBeginOpen == CommunicationState.Opening,
269Assert.True(data.StateLeaveOnBeginOpen == CommunicationState.Opening,
273Assert.True(data.StateEnterOnOpened == CommunicationState.Opening,
276Assert.True(data.StateLeaveOnOpened == CommunicationState.Opened,
280Assert.True(data.StateEnterOnClosing == CommunicationState.Closing,
283Assert.True(data.StateLeaveOnClosing == CommunicationState.Closing,
287Assert.True(data.StateEnterOnBeginClose == CommunicationState.Closing,
290Assert.True(data.StateLeaveOnBeginClose == CommunicationState.Closing,
294Assert.True(data.StateEnterOnClosed == CommunicationState.Closing,
297Assert.True(data.StateLeaveOnClosed == CommunicationState.Closed,
ServiceModel\ChannelFactoryTest.cs (14)
148Assert.Equal(CommunicationState.Created, factory.State);
154Assert.Equal(CommunicationState.Opened, factory.State);
162Assert.Equal(CommunicationState.Closed, factory.State);
170Assert.Equal(CommunicationState.Closed, factory.State);
174Assert.Equal(CommunicationState.Closed, factory.State);
218Assert.True(CommunicationState.Created == factory.State,
219string.Format("factory.State - Expected: {0}, Actual: {1}.", CommunicationState.Created, factory.State));
222Assert.True(CommunicationState.Opened == factory.State,
223string.Format("factory.State - Expected: {0}, Actual: {1}.", CommunicationState.Opened, factory.State));
226Assert.True(CommunicationState.Closed == factory.State,
227string.Format("factory.State - Expected: {0}, Actual: {1}.", CommunicationState.Closed, factory.State));
231if (factory != null && factory.State != CommunicationState.Closed)
288Assert.Equal(CommunicationState.Closed, factory.State);
317Assert.Equal(CommunicationState.Closed, factory.State);
ServiceModel\ClientBaseTest.cs (10)
23Assert.Equal(CommunicationState.Created, client.State);
25Assert.Equal(CommunicationState.Opened, client.State);
27Assert.Equal(CommunicationState.Closed, client.State);
125Assert.Equal(CommunicationState.Closed, existingChannelFactory.State);
184Assert.Equal(CommunicationState.Created, client.State);
186Assert.Equal(CommunicationState.Opened, client.State);
188Assert.Equal(CommunicationState.Closed, client.State);
202Assert.Equal(CommunicationState.Created, client.State);
204Assert.Equal(CommunicationState.Opened, client.State);
206Assert.Equal(CommunicationState.Closed, client.State);
UnitTests.Common (17)