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