Beispiel #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;
            }
            
        }
Beispiel #2
0
 public void RequestForFrequencyC3ReturnsExpectedElements() {
     TraceExecutingMethod();
     var toneSet = new ToneUtility();
     Assert.AreEqual("C.3",toneSet.GetNoteElements(131));
 }