public void IsEmptyTest08()
 {
     NonEmptyTestEnumerable c = new NonEmptyTestEnumerable();
     try
     {
         Condition.Requires(c, "c").IsEmpty("{0} should have one, two or at least some elements :-)");
     }
     catch (ArgumentException ex)
     {
         Assert.IsTrue(ex.Message.Contains("c should have one, two or at least some elements :-)"));
     }
 }
Пример #2
0
        public void IsEmptyTest08()
        {
            NonEmptyTestEnumerable c = new NonEmptyTestEnumerable();

            try
            {
                Condition.Requires(c, "c").IsEmpty("{0} should have one, two or at least some elements :-)");
            }
            catch (ArgumentException ex)
            {
                Assert.IsTrue(ex.Message.Contains("c should have one, two or at least some elements :-)"));
            }
        }
Пример #3
0
        public void IsNotEmptyTest7()
        {
            NonEmptyTestEnumerable c = new NonEmptyTestEnumerable();

            Condition.Requires(c).IsNotEmpty("conditionDescription");
        }
Пример #4
0
        public void IsNotEmptyTest6()
        {
            NonEmptyTestEnumerable c = new NonEmptyTestEnumerable();

            Condition.Requires(c).IsNotEmpty();
        }
Пример #5
0
        public void IsEmptyTest09()
        {
            NonEmptyTestEnumerable c = new NonEmptyTestEnumerable();

            Condition.Requires(c).SuppressExceptionsForTest().IsEmpty();
        }
 public void IsNotEmptyTest7()
 {
     NonEmptyTestEnumerable c = new NonEmptyTestEnumerable();
     Condition.Requires(c).IsNotEmpty("conditionDescription");
 }
 public void IsNotEmptyTest6()
 {
     NonEmptyTestEnumerable c = new NonEmptyTestEnumerable();
     Condition.Requires(c).IsNotEmpty();
 }
 public void IsEmptyTest09()
 {
     NonEmptyTestEnumerable c = new NonEmptyTestEnumerable();
     Condition.Requires(c).SuppressExceptionsForTest().IsEmpty();
 }