コード例 #1
0
        public void ReadToneFrequency1_ReturnsValue()
        {
            var result = _configurationReader.ReadToneFrequency1();

            result.Should().Be(1);
        }
コード例 #2
0
 public TonePatternDetector(IConfigurationReader configurationReader)
 {
     _targetFrequency1 = configurationReader.ReadToneFrequency1();
     _targetFrequency2 = configurationReader.ReadToneFrequency2();
     _state = PatternState.NoTargetFrequencyDetected;
 }