コード例 #1
0
        public void EmptyStringTest()
        {
            // arrange
            string str = String.Empty;
            //act
            SequenceBuilder sb = new SequenceBuilder();

            //assert
            Assert.Null(sb.CheckEven(str));
        }
コード例 #2
0
        public void EvenIndexTest()
        {
            //arrange
            string str    = "ababab";
            string result = "aaa";
            //act
            SequenceBuilder sb = new SequenceBuilder();

            //assert
            Assert.Equal(sb.CheckEven(str), result);
        }