Esempio n. 1
0
        public void ValidateCuts_InputContainsNullThrowsException()
        {
            List <int?> input = new List <int?> {
                1, 2, 3, null, 5, 6
            };

            Assert.ThrowsException <ArgumentNullException>(() => { PinningModelBase.ValidateCuts(input); });
        }
Esempio n. 2
0
        public void ValidateCuts_UnsortedInputThrowsException()
        {
            List <int?> input = new List <int?> {
                2, 3, 1, 4, 6, 5
            };

            Assert.ThrowsException <ArgumentException>(() => { PinningModelBase.ValidateCuts(input); });
        }
Esempio n. 3
0
        public void ValidateCuts_EmptyInputReturnsFalse()
        {
            List <int?> input = new List <int?>();

            bool output = PinningModelBase.ValidateCuts(input);

            Assert.AreEqual(false, output);
        }
Esempio n. 4
0
        public void ValidateCuts_ValidInputReturnsTrue()
        {
            List <int?> input = new List <int?> {
                1, 2, 3
            };

            bool output = PinningModelBase.ValidateCuts(input);

            Assert.AreEqual(true, output);
        }