Exemplo n.º 1
0
        public void Song_with_ambiguous_elements_works()
        {
            var transposer = new Transpose.Transposer();

            var assemblyName = Assembly.GetExecutingAssembly().GetName().Name;

            string song = GetResource($"{assemblyName}.Resources.Input.fake-song-key-a.txt");

            var result = transposer.ChangeKey(song, "G");

            string songInKeyOfG = GetResource($"{assemblyName}.Resources.Output.fake-song-key-g.txt");

            result.Should().Be(songInKeyOfG);
        }
Exemplo n.º 2
0
        public void Changing_with_original_key_specified_works()
        {
            var transposer = new Transpose.Transposer();

            var assemblyName = Assembly.GetExecutingAssembly().GetName().Name;

            string song = GetResource($"{assemblyName}.Resources.Input.tears-in-heaven-key-a.txt");

            var result = transposer.ChangeKey(song, "C", "A");

            string songInKeyOfC = GetResource($"{assemblyName}.Resources.Output.tears-in-heaven-key-c.txt");

            result.Should().Be(songInKeyOfC);
        }