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