示例#1
0
        public void GenerateRegistrationId_Method_Should_Return_String_OfNumbers()
        {
            ConsultantImplementation implementation = new ConsultantImplementation();
            var result = implementation.GenerateRegID();

            Assert.That(result, !Is.NaN);
        }
示例#2
0
        public void GenerateRegistrationId_Method_Should_Return_String_That_IsNot_Greater_Than_Or_Lessthan_Six()
        {
            ConsultantImplementation implementation = new ConsultantImplementation();
            var result = implementation.GenerateRegID();

            Assert.That(!(result.Length > 6) && !(result.Length < 6));
            Assert.That(result.Length == 6);
        }
示例#3
0
        public void GenerateRegistrationId_Method_Should_Return_String_That_DoesNotContain_Letters()
        {
            ConsultantImplementation implementation = new ConsultantImplementation();
            var result = implementation.GenerateRegID();
            var letter = "absjdkdkdsu";
            var doesntContainletters = !(result.Contains(letter));

            Assert.That(doesntContainletters);
        }