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

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