Esempio n. 1
0
        public void UnrepeatingSymbolsOfString_positive(string testString, int expectedNumberOfSymbols)
        {
            var stringWorker          = new WorkWithString();
            int actualNumberOfSymbols = stringWorker.GetNumberOfMaxUnrepeatingSymbols(testString);

            Assert.AreEqual(expectedNumberOfSymbols, actualNumberOfSymbols);
        }
Esempio n. 2
0
        public void UnrepeatingSymbolsOfString_negative(string testString)
        {
            var stringWorker = new WorkWithString();

            Assert.Throws <NullReferenceException>(() => stringWorker.GetNumberOfMaxUnrepeatingSymbols(testString));
        }