Ejemplo n.º 1
0
        public void When_ListIsEmpty_Then_ShouldReturnNull(int num)
        {
            List <int> a = new List <int>();

            PairFinder pf = new PairFinder(a);

            Assert.IsNull(pf.FindPairForNum(num));
        }
Ejemplo n.º 2
0
        public void When_NegativeMatchFound_Then_ShouldReturnNull()
        {
            List <int> a = new List <int> {
                -5, -2
            };

            PairFinder pf = new PairFinder(a);

            Assert.IsNotNull(pf.FindPairForNum(-7));
        }
Ejemplo n.º 3
0
        public void When_PositiveMatchFound_Then_ShouldReturnNull()
        {
            List <int> a = new List <int> {
                1, 2
            };

            PairFinder pf = new PairFinder(a);

            Assert.IsNotNull(pf.FindPairForNum(3));
        }