Пример #1
0
        public void TestMethod1(string s, int expected)
        {
            // Arrange
            Q3 question = new Q3();

            // Act
            int actual = question.solution(s);

            // Assert
            Assert.AreEqual(expected, actual);
        }
Пример #2
0
 public static void Main(string[] args)
 {
     Console.WriteLine(Q3.solution(new int[] { 1, 0, 2, 0, 0, 2 })); //Should be 3
 }