예제 #1
0
        public void LikeString()
        {
            string s     = "Testing";
            string regEx = @"(?<Test>\w{3})$";

            OldStringAssert.Like(s, regEx);
        }
예제 #2
0
        public void Contains()
        {
            string s       = "framework";
            string contain = "ork";

            OldStringAssert.Contains(s, contain);
        }
예제 #3
0
        public void FullMatchString()
        {
            string s       = "Testing";
            string pattern = @"^Testing$";

            OldStringAssert.FullMatch(s, pattern);
        }
예제 #4
0
        public void EndsWith()
        {
            string s       = "framework";
            string pattern = @"ork";

            OldStringAssert.EndsWith(s, pattern);
        }
예제 #5
0
        public void StartWith()
        {
            string s       = "frame work";
            string pattern = @"fra";

            OldStringAssert.StartsWith(s, pattern);
        }
예제 #6
0
        public void NotLikeString()
        {
            string s     = "Testing";
            string regEx = @"notthere";

            OldStringAssert.NotLike(s, regEx);
        }
예제 #7
0
 public void IsNotEmpty()
 {
     OldStringAssert.IsNonEmpty(" ");
 }
예제 #8
0
 public void IsEmpty()
 {
     OldStringAssert.IsEmpty("");
 }
예제 #9
0
 public void DoesNotContain()
 {
     OldStringAssert.DoesNotContain("hello", 'k');
 }
예제 #10
0
 public void AreEqualIgnoreCase()
 {
     OldStringAssert.AreEqualIgnoreCase("hello", "HELLO");
 }