Пример #1
0
        static void Main(string[] args)
        {
            var song = new ThemeSong(5);

            Console.WriteLine("{0}", song);

            TestApi();
        }
Пример #2
0
        static void TestApi()
        {
            void AssertGenerateThemeSong(byte length, string expectedResult)
            {
                using var result = new ThemeSong(length);

                Debug.Assert(expectedResult == result.ToString());
            }

            AssertGenerateThemeSong(0, "💣 Batman! 💣");
            AssertGenerateThemeSong(1, "💣 na Batman! 💣");
            AssertGenerateThemeSong(2, "💣 na na Batman! 💣");
        }