Esempio n. 1
0
        public void CheckWhiteSpace_Test()
        {
            GroupTwoFunctions g2 = new GroupTwoFunctions();

            Assert.True(g2.CheckWhiteSpace("    Melbourne Victoria   "));
            Assert.True(g2.CheckWhiteSpace("    Melbourne"));
            Assert.True(g2.CheckWhiteSpace("Melbourne       "));
            Assert.False(g2.CheckWhiteSpace("Melbourne"));
        }
        public void CheckWhiteSpace(Boolean expected, string word)
        {
            var ml     = new GroupTwoFunctions();
            var result = ml.CheckWhiteSpace(word);

            Assert.Equal(result, expected);
        }
Esempio n. 3
0
        public void CheckWhiteSpace_test(bool expected, int input)
        {
            GroupTwoFunctions G1 = new GroupTwoFunctions();

            ;
            var result = G1.CheckWhiteSpace();

            Assert.Equal(expected, result);
        }
Esempio n. 4
0
 public void CheckWhiteSpace_Test()
 {
     //not sure about this question I just check if the string have space
     Assert.True(FunctiontoTest.CheckWhiteSpace("Hi my name is Alexandre And i love the roast beef  "));
     Assert.False(FunctiontoTest.CheckWhiteSpace("Whouuuuuuuuuuuuuuuuuuuuuuuuuuuu"));
 }
Esempio n. 5
0
 public void CheckWhiteSpace_Test(bool expected, string word) {
     Assert.Equals(expected, x.CheckWhiteSpace(word));
 }
Esempio n. 6
0
 public void CheckWhiteSpace_Test(bool answere, string word)
 {
     Assert.Equals(answere, z.CheckWhiteSpace(word));
 }
Esempio n. 7
0
        public void CheckWhiteSpace_Test(bool expected, string input)
        {
            GroupTwoFunctions GTF = new GroupTwoFunctions();

            Assert.Equals(expected, GTF.CheckWhiteSpace(input));
        }