public void ValidateCuts_InputContainsNullThrowsException() { List <int?> input = new List <int?> { 1, 2, 3, null, 5, 6 }; Assert.ThrowsException <ArgumentNullException>(() => { PinningModelBase.ValidateCuts(input); }); }
public void ValidateCuts_UnsortedInputThrowsException() { List <int?> input = new List <int?> { 2, 3, 1, 4, 6, 5 }; Assert.ThrowsException <ArgumentException>(() => { PinningModelBase.ValidateCuts(input); }); }
public void ValidateCuts_EmptyInputReturnsFalse() { List <int?> input = new List <int?>(); bool output = PinningModelBase.ValidateCuts(input); Assert.AreEqual(false, output); }
public void ValidateCuts_ValidInputReturnsTrue() { List <int?> input = new List <int?> { 1, 2, 3 }; bool output = PinningModelBase.ValidateCuts(input); Assert.AreEqual(true, output); }