Пример #1
0
        public void InputContainsZero()
        {
            var input = new int[] { 1, 0, 3, 4 };
            var want  = new int[] { 0, 12, 0, 0 };

            var got = ProductofArrayExceptSelf.ProductExceptSelf(input);

            Assert.Equal(got, want);
        }
Пример #2
0
        public void ProductExceptSelfTest()
        {
            var input = new int[] { 1, 2, 3, 4 };
            var want  = new int[] { 24, 12, 8, 6 };

            var got = ProductofArrayExceptSelf.ProductExceptSelf(input);

            Assert.Equal(got, want);
        }