public void GenerateRegistrationId_Method_Should_Return_String_OfNumbers() { ConsultantImplementation implementation = new ConsultantImplementation(); var result = implementation.GenerateRegID(); Assert.That(result, !Is.NaN); }
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); }
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); }