public void ArgumentNotEmptySpanTest02() { try { var people = new Span <PersonProper>(); people.ArgumentNotEmpty(); Assert.Fail(); } catch { Assert.IsTrue(true); } }
public void ArgumentNotNullSpanTest() { var people = new Span <PersonProper>(RandomData.GeneratePersonRefCollection <PersonProper>(10).ToArray()); try { var result = people.ArgumentNotEmpty(nameof(people)); } catch { Assert.Fail(); } _ = Assert.ThrowsException <ArgumentNullException>(() => Span <PersonProper> .Empty.ArgumentNotEmpty()); }
public void ArgumentNotEmptyParamSpanTest01() { try { Span <PersonProper> people = RandomData.GeneratePersonRefCollection <PersonProper>(10).ToArray(); people.ArgumentNotEmpty(); Assert.IsTrue(true); } catch { Assert.Fail(); } }