public void GivenANormalizerWhenPassingNullNameThenNullMustBeReturned()
        {
            var normalizer = new DefaultNamingNormalizer <IMigrationContext>();

            var normalizedName = normalizer.Normalize(null);

            Assert.Null(normalizedName);
        }
        public void GivenANormalizerWhenPassingWhitespaceNameThenEmptyMustBeReturned()
        {
            var normalizer = new DefaultNamingNormalizer <IMigrationContext>();

            var normalizedName = normalizer.Normalize("      ");

            Assert.NotNull(normalizedName);
            Assert.Same(string.Empty, normalizedName);
        }
        public void GivenANormalizerWhenPassingNormalizedNameThenEqualValueMustBeReturned()
        {
            const string nonNormalizedName = "!HELLO.123.WORLD!";

            var normalizer = new DefaultNamingNormalizer <IMigrationContext>();

            var normalizedName = normalizer.Normalize(nonNormalizedName);

            Assert.NotNull(normalizedName);
            Assert.Equal(nonNormalizedName, normalizedName);
        }
        public void GivenANormalizerWhenPassingNotTrimAndUppercaseNameThenTrimAndUppercaseMustBeReturned()
        {
            const string nonNormalizedName = "   !Hello.123.World!   ";

            var normalizer = new DefaultNamingNormalizer <IMigrationContext>();

            var normalizedName = normalizer.Normalize(nonNormalizedName);

            Assert.NotNull(normalizedName);
            Assert.Equal("!HELLO.123.WORLD!", normalizedName);
        }