Exemplo n.º 1
0
        public void InitializeSettings_ShouldInitializeTextProcessor()
        {
            // Arrange
            var matchRules = new ComplexObservableList <MatchRule>();

            A.CallTo(() => _embeddedContetnRegexSettingsMock.MatchRules).Returns(matchRules);

            var testee = CreateTestee();

            // Act
            testee.InitializeSettings(_settingsBundleMock, string.Empty);

            // Assert
            A.CallTo(() => _textProcessorMock.InitializeWith(matchRules)).MustHaveHappened();
        }
 public void InitializeSettings(ISettingsBundle settingsBundle, string configurationId)
 {
     _settings.PopulateFromSettingsBundle(settingsBundle, configurationId);
     _textProcessor.InitializeWith(_settings.MatchRules);
 }