Beispiel #1
0
        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
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
        public void Sensor_property_starts_as_not_set()
        {
            BaseMapsServiceRequest actual = CreateBaseMapsServiceRequest();

            Assert.IsNull(actual.Sensor); //property is supposed to start off null.
        }