Beispiel #1
0
        public void IsValid_NothingWeird_ReturnsTrue()
        {
            ClassAbbreviation classAbbreviation = new ClassAbbreviation();

            String abbreviation = new String("Comp170");

            Assert.True(classAbbreviation.IsValid(abbreviation));
        }
Beispiel #2
0
        public void IsValid_IsEmpty_ReturnsFalse()
        {
            ClassAbbreviation classAbbreviation = new ClassAbbreviation();

            String abbreviation = new String("");

            Assert.False(classAbbreviation.IsValid(abbreviation));
        }
Beispiel #3
0
        public void IsValid_SomethingWeird_ReturnsFalse()
        {
            ClassAbbreviation classAbbreviation = new ClassAbbreviation();

            String abbreviation = new String("Comp*170");

            Assert.False(classAbbreviation.IsValid(abbreviation));
        }
Beispiel #4
0
        public void IsValid_IsNull_ReturnsFalse()
        {
            ClassAbbreviation classAbbreviation = new ClassAbbreviation();

            Assert.False(classAbbreviation.IsValid(null));
        }