Esempio n. 1
0
        public void RequestForNotFoundFrequencyThrowsException()
        {


            TraceExecutingMethod();
            var toneSet = new ToneUtility();

            try {
                toneSet.GetNoteElements(9999);
            }
            catch (ArgumentException ex) {
                Assert.AreEqual("[The frequency [9999] was not found in the set of available notes]", ex.Message);
                throw;
            }
            
        }
Esempio n. 2
0
 public void RequestForFrequencyC3ReturnsExpectedElements() {
     TraceExecutingMethod();
     var toneSet = new ToneUtility();
     Assert.AreEqual("C.3",toneSet.GetNoteElements(131));
 }
Esempio n. 3
0
 public void FrequencyDictionaryHas2OctavesOfNotes() {
     TraceExecutingMethod();
     var frequencyCount  = new ToneUtility().GetAllNotes().Count;
     Assert.AreEqual((12*2), frequencyCount);
 }