Example #1
0
 public void PadStartWithSelectorWithNegativeWidth()
 {
     AssertThrowsArgument.Exception("width", () => new int[0].PadStart(-1, x => x));
 }
Example #2
0
 public void TestNegativeLoopCountsException()
 {
     AssertThrowsArgument.Exception("loopCounts", () =>
                                    EmptyLoopBody.NestedLoops(Enumerable.Range(-10, 10)));
 }
Example #3
0
 public void PadStartWithPaddingWithNegativeWidth()
 {
     AssertThrowsArgument.Exception("width", () => new int[0].PadStart(-1, 1));
 }
Example #4
0
 public void PadNegativeWidth()
 {
     AssertThrowsArgument.Exception("width", () =>
                                    new object[0].Pad(-1));
 }