Beispiel #1
0
        public void Test1()
        {
            var inputString    = "Dotnet-bot: Welcome to using .NET Core!";
            var expectedString = "!eroC TEN. gnisu ot emocleW :tob-tentoD";
            var actualString   = ReverseUtil.ReverseString(inputString);

            Assert.True(actualString == expectedString, "The input string was not reversed correctly.");
        }
Beispiel #2
0
    public static void Main(string[] args)
    {
        string message = "Dotnet-bot: Welcome to using .NET Core!";

        if (args.Length > 0)
        {
            message = String.Join(" ", args);
        }

        var reversedString = $"Reversed string: {ReverseUtil.ReverseString(message)}";

        WriteLine(GetBot(reversedString));
        WriteLine("**Environment**");
        WriteLine($"Platform: .NET Core 2.0");
        WriteLine($"OS: {RuntimeInformation.OSDescription}");
        WriteLine();
    }