public void GuaranteeThisGeneric() { var data = new List <int>(); Guarantee.This((lst) => lst.Count == 0, data); Assert.Throws <Exception>(() => Guarantee.This((lst) => lst.Count == 1, data)); }
public void GuaranteeThis() { var data = new List <int>(); Guarantee.This(() => true); Assert.Throws <Exception>(() => Guarantee.This(() => false)); }