Ejemplo n.º 1
0
        public void ShouldThrowNullArgumentException()
        {
            const string text = null;

            var strategy = new NormalizationStrategy();

            Assert.Throws <ArgumentNullException>(() => strategy.Translate(text));
        }
Ejemplo n.º 2
0
        public void ShouldNormalize(string value, string expectation)
        {
            var strategy = new NormalizationStrategy();

            var translated = strategy.Translate(value);

            Assert.Equal(expectation, translated);
        }