public void IsValidIdentifier_ValidStringGiven_ShouldReturnTrue()
 {
     bool? result = false;
     using (var testee = new CSharpIdentifierValidator())
     {
         result = testee.IsValidIdentifier("variable");
     }
     result.Should().Be(true);
 }
예제 #2
0
        public void IsValidIdentifier_ValidStringGiven_ShouldReturnTrue()
        {
            bool?result = false;

            using (var testee = new CSharpIdentifierValidator())
            {
                result = testee.IsValidIdentifier("variable");
            }
            result.Should().Be(true);
        }
예제 #3
0
        public void IsValidIdentifier_VarNameNullValueGiven_ShouldThrowArgumentNullException()
        {
            var cSharpIdentifierValidator = new CSharpIdentifierValidator();

            cSharpIdentifierValidator.IsValidIdentifier(null);
        }
예제 #4
0
 public void IsValidIdentifier_VarNameNullValueGiven_ShouldThrowArgumentNullException()
 {
     var cSharpIdentifierValidator = new CSharpIdentifierValidator();		 
     cSharpIdentifierValidator.IsValidIdentifier(null);		 
 }