示例#1
0
        public void CountSumofWordsTest()
        {
            string path = "Hello world!I am a boy.";

            Assert.AreEqual(2, TXtOperate.CountSumofWords(path));
            //Assert.Fail();
        }
示例#2
0
        public void IswordsTest()
        {
            string path = "good123";

            Assert.IsNotNull(TXtOperate.Iswords(path));
            //Assert.Fail();
        }
示例#3
0
        public void CountCharTest()
        {
            string str   = "Hello world!I am a boy.";
            int    count = str.Length;

            Assert.AreEqual(TXtOperate.CountChar(str), count);
            string str1 = "";

            Assert.AreEqual(TXtOperate.CountChar(str1), str1.Length);
            //Assert.Fail();
        }