Ejemplo n.º 1
0
        public void GuiatString_DropDTuningForString6IsCorrect()
        {
            // ARRANGE
            var stringNumber       = 6;
            var tuning             = "D2";
            var maxFrets           = 24;
            var expectedCNoteIndex = 1;

            // ACT
            var actual     = new GuitarString(stringNumber, tuning, maxFrets);
            var cNoteIndex = actual.GetNote("D#2");

            // ASSERT
            Assert.Equal(tuning, actual.Tuning);
            Assert.Equal(expectedCNoteIndex, cNoteIndex);
        }
Ejemplo n.º 2
0
        public void GuiatString_EnsureDropCSharpForString6IsCorrect()
        {
            // ARRANGE
            var stringNumber       = 6;
            var tuning             = "C#2";
            var maxFrets           = 12;
            var expectedCNoteIndex = 11;

            // ACT
            var actual     = new GuitarString(stringNumber, tuning, maxFrets);
            var cNoteIndex = actual.GetNote("C3");

            // ASSERT
            Assert.Equal(tuning, actual.Tuning);
            Assert.Equal(expectedCNoteIndex, cNoteIndex);
        }