Beispiel #1
0
 public void ThrowIfNumberNotInRange_ValueInRange_ExceptionNotThrowed()
 {
     VkErrors.ThrowIfNumberNotInRange(5, 2, 7);
     VkErrors.ThrowIfNumberNotInRange(5, 5, 7);
     VkErrors.ThrowIfNumberNotInRange(5, 2, 5);
 }
Beispiel #2
0
 public void ThrowIfNumberNotInRange_MoreThanMax_ThrowsException()
 {
     This.Action(() => VkErrors.ThrowIfNumberNotInRange(12, 5, 10)).Throws <ArgumentOutOfRangeException>();
 }
Beispiel #3
0
 public void ThrowIfNumberNotInRange_LessThenMin_ThrowsException()
 {
     This.Action(() => VkErrors.ThrowIfNumberNotInRange(2, 5, 10)).Throws <ArgumentOutOfRangeException>();
 }
Beispiel #4
0
 public void ThrowIfNumberNotInRange_ValueInRange_ExceptionNotThrowed()
 {
     VkErrors.ThrowIfNumberNotInRange(value: 5, min: 2, max: 7);
     VkErrors.ThrowIfNumberNotInRange(value: 5, min: 5, max: 7);
     VkErrors.ThrowIfNumberNotInRange(value: 5, min: 2, max: 5);
 }
Beispiel #5
0
 public void ThrowIfNumberNotInRange_MoreThanMax_ThrowsException()
 {
     Assert.Throws <ArgumentOutOfRangeException>(code: () => VkErrors.ThrowIfNumberNotInRange(value: 12, min: 5, max: 10));
 }
Beispiel #6
0
 public void ThrowIfNumberNotInRange_LessThenMin_ThrowsException()
 {
     Assert.Throws <ArgumentOutOfRangeException>(code: () => VkErrors.ThrowIfNumberNotInRange(value: 2, min: 5, max: 10));
 }