Example #1
0
        private void CheckArbitraryValuesOf(Type expectedType)
        {
            IEnumerable values = Generators.ArbitraryValuesOf(expectedType);

            Assert.IsTrue(values.GetEnumerator().MoveNext());
            Iterator4Assert.AreInstanceOf(expectedType, values);
        }
Example #2
0
 public virtual void TestArbitraryStringValues()
 {
     CheckArbitraryValuesOf(typeof(string));
     Iterator4Assert.All(Generators.ArbitraryValuesOf(typeof(string)), new _IPredicate4_16
                             ());
 }
Example #3
0
        private IEnumerable ValuesOf(Type type)
        {
//			return Generators.Trace(Generators.ArbitraryValuesOf(type));
            return(Generators.ArbitraryValuesOf(type));
        }