public void BasicTest() { Check.That("Unit").IsNotEmpty(); Check.ThatCode(() => Check.That("Unit").IsEqualTo("great")).Throws <AssertionException>(); Check.ThatCode(() => Assuming.That("Unit").IsEqualTo("great")).Throws <InconclusiveException>(); }
public void AssumptionScanTest() { Assuming.That(2).IsEqualTo(2); Check.ThatCode(() => Assuming.That(2).IsEqualTo(0)).Throws <XunitException>(); Check.ThatCode(() => Assuming.That(2).IsEqualTo(0)).IsAFailingAssumption(); }
public void AssumptionTest() { Check.ThatCode(() => Assuming.That("MsTest").IsEqualTo("great")).Throws <AssertInconclusiveException>(); }
private static void AssumptionTest() { Check.ThatCode(() => Assuming.That(2).IsEqualTo(3)).Throws <FluentCheckException>(); Check.ThatCode(() => Assuming.That(2).IsEqualTo(3)).IsAFailingAssumption(); }
public void ProvideIgnoreForObjectCheck() { Assuming.That(12).IsEqualTo(12); Check.ThatCode(() => Assuming.That(12).IsEqualTo(13)).IsAFailingAssumption(); }
public void ProvideIgnoreForTypeCheck() { Assuming.That <int>().IsEqualTo(typeof(int)); Check.ThatCode(() => Assuming.That <int>().IsInstanceOf <int>()).IsAFailingAssumption(); }
public void AssumptionScanTest() { // inject a type from the fuzzing assembly to check for some degenerative case Assuming.That(2).IsEqualTo(2); Assuming.ThatCode(() => Check.That(2).IsEqualTo(0)).Throws <XunitException>(); }
public void ProvideIgnoreForStructCheck() { Assuming.That(4).IsEqualTo(4); Check.ThatCode(() => Assuming.That(4).IsEqualTo(5)).IsAFailingAssumption(); }