Пример #1
0
 public void PassWhenThereAreNoExceptionsOrInconclusives()
 {
     AssertAll.IsFalse(false);
     AssertAll.AreEqual(1, 1);
     AssertAll.IsInstanceOfType(1, typeof(int));
     AssertAll.Execute();
 }
Пример #2
0
        public void FailWhenTypesAreNotTheSame()
        {
            AssertAll.IsInstanceOfType("1", typeof(int));

            Assert.ThrowsException <AssertAllFailedException>(() => AssertAll.Execute());
        }
Пример #3
0
 public void PassWhenTypesAreTheSame()
 {
     AssertAll.IsInstanceOfType(1, typeof(int));
     AssertAll.Execute();
 }