public void EnsureSensor_throwIfNotSet_eq_true_throws_InvalidOperationEx() { BaseMapsServiceRequest target = CreateBaseMapsServiceRequest(); Assert.IsNull(target.Sensor); //property is supposed to start off null. target.EnsureSensor(true); //exception should've happened }
public void EnsureSensor_throwIfNotSet_eq_false() { BaseMapsServiceRequest target = CreateBaseMapsServiceRequest(); Assert.IsNull(target.Sensor); //property is supposed to start off null. bool returnValue = target.EnsureSensor(false); Assert.IsFalse(returnValue); }
public void Sensor_property_starts_as_not_set() { BaseMapsServiceRequest actual = CreateBaseMapsServiceRequest(); Assert.IsNull(actual.Sensor); //property is supposed to start off null. }