public void SourceClockShouldBe(IAWG awg, string clockNumber, SourceClock shouldBe) { string clockSource = awg.ClockSource(clockNumber); string possibleErrorString = "Checking the source for clock " + clockNumber; switch (shouldBe) { case SourceClock.Internal: Assert.AreEqual("INT", clockSource, possibleErrorString); break; case SourceClock.External: Assert.AreEqual("EXT", clockSource, possibleErrorString); break; case SourceClock.Fixed: Assert.AreEqual("EFIX", clockSource, possibleErrorString); break; case SourceClock.Variable: Assert.AreEqual("EVAR", clockSource, possibleErrorString); break; } }