public void CheckFirstNotDuplicateCharactorr(string inputString, char expected)
        {
            var sut    = new FirstDuplicateCharactorLogic();
            var result = sut.FirstNotDuplicateCharactor(inputString);

            Assert.Equal(expected, result);
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            System.Console.Write("Please input string: ");
            var inputString = Console.ReadLine();
            var text        = new FirstDuplicateCharactorLogic();

            System.Console.WriteLine($"FirstDuplicateCharactor is: {text.FirstDuplicateCharactor(inputString)}");
            System.Console.WriteLine($"FirstNotDuplicateCharactor is: {text.FirstNotDuplicateCharactor(inputString)}");
        }