Implemented interface member:
property
State
System.ServiceModel.ICommunicationObject.State
43 references to State
Client.ClientBase.IntegrationTests (29)
ChannelBaseTests.4.0.0.cs (2)
245Assert.True(CommunicationState.Closed == client.State, 246String.Format("Expected client state to be Closed but actual was '{0}'", client.State));
ClientBaseTests.4.0.0.cs (27)
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, 220String.Format("Expected client state to be Created but actual was '{0}'", client.State)); 241Assert.True(CommunicationState.Opened == client.State, 242String.Format("Expected client state to be Opened but actual was '{0}'", client.State)); 256Assert.True(CommunicationState.Closed == client.State, 257String.Format("Expected client state to be Closed but actual was '{0}'", client.State)); 294Assert.True(CommunicationState.Created == client.State, 295String.Format("Expected client state to be Created but actual was '{0}'", client.State)); 317Assert.True(CommunicationState.Opened == client.State, 318String.Format("Expected client state to be Opened but actual was '{0}'", client.State)); 333Assert.True(CommunicationState.Closed == client.State, 334String.Format("Expected client state to be Closed but actual was '{0}'", client.State)); 373Assert.True(CommunicationState.Created == client.State, 374String.Format("Expected client state to be Created but actual was '{0}'", client.State)); 396Assert.True(CommunicationState.Opened == client.State, 397String.Format("Expected client state to be Opened but actual was '{0}'", client.State)); 412Assert.True(CommunicationState.Closed == client.State, 413String.Format("Expected client state to be Closed but actual was '{0}'", client.State)); 462Assert.True(CommunicationState.Closed == client.State, 463String.Format("Expected client state to be Closed but actual was '{0}'", client.State)); 513Assert.True(CommunicationState.Closed == client.State, 514String.Format("Expected client state to be Closed but actual was '{0}'", client.State));
System.ServiceModel.Primitives (2)
System\ServiceModel\ClientBase.cs (2)
457if (State == CommunicationState.Opened) 462if (State != CommunicationState.Closed)
System.ServiceModel.Primitives.Tests (12)
ServiceModel\ClientBaseTest.cs (9)
23Assert.Equal(CommunicationState.Created, client.State); 25Assert.Equal(CommunicationState.Opened, client.State); 27Assert.Equal(CommunicationState.Closed, client.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);
ServiceModel\DuplexClientBaseTest.cs (3)
24Assert.Equal<CommunicationState>(CommunicationState.Created, duplexClientBase.State); 37Assert.Equal<CommunicationState>(CommunicationState.Created, duplexClientBase.State); 39Assert.Equal<CommunicationState>(CommunicationState.Closed, duplexClientBase.State);