16 writes to CacheSetting
System.ServiceModel.Primitives.Tests (16)
ServiceModel\ClientBaseTest.cs (16)
44
MyClientBase.
CacheSetting
= CacheSetting.Default;
46
Assert.Throws<InvalidOperationException>(() => MyClientBase.
CacheSetting
= CacheSetting.AlwaysOn);
65
MyClientBase.
CacheSetting
= CacheSetting.Default;
67
Assert.Throws<InvalidOperationException>(() => MyClientBase.
CacheSetting
= CacheSetting.AlwaysOn);
73
MyClientBase2.
CacheSetting
= CacheSetting.AlwaysOn;
94
MyClientBase2.
CacheSetting
= CacheSetting.AlwaysOn;
96
Assert.Throws<InvalidOperationException>(() => MyClientBase2.
CacheSetting
= CacheSetting.Default);
102
MyClientBase2.
CacheSetting
= CacheSetting.AlwaysOn;
130
MyClientBase2.
CacheSetting
= CacheSetting.AlwaysOn;
132
Assert.Throws<InvalidOperationException>(() => MyClientBase2.
CacheSetting
= CacheSetting.Default);
139
MyClientBase3.
CacheSetting
= CacheSetting.AlwaysOff;
150
MyClientBase3.
CacheSetting
= CacheSetting.AlwaysOff;
152
Assert.Throws<InvalidOperationException>(() => MyClientBase.
CacheSetting
= CacheSetting.AlwaysOn);
158
MyClientBase3.
CacheSetting
= CacheSetting.AlwaysOff;
171
MyClientBase3.
CacheSetting
= CacheSetting.AlwaysOff;
173
Assert.Throws<InvalidOperationException>(() => MyClientBase.
CacheSetting
= CacheSetting.AlwaysOn);
2 references to CacheSetting
System.ServiceModel.Primitives.Tests (2)
ServiceModel\ClientBaseTest.cs (2)
33
Assert.Equal(CacheSetting.Default, MyClientBase.
CacheSetting
);
52
Assert.Equal(CacheSetting.Default, MyClientBase.
CacheSetting
);