예제 #1
0
        public void RegisterAlphabetUppercase_ValueSet_Value(bool value)
        {
            // Set all characters as value
            characterLookup.RegisterAll(!value);

            // Run method that we are testing
            characterLookup.RegisterAlphabetUppercase(value);

            // Create tests
            var pass = true;

            for (char c = 'A'; c <= 'Z'; c++)
            {
                if (characterLookup.Value[c] != value)
                {
                    pass = false;
                    break;
                }
            }

            // Result
            Assert.True(pass);
        }