protected override void Init()
 {
     _property = For<Property>();
     _classifiers = CreateDictionaryWithoutSystemTypes();
     _messageSystem = For<MessageSystem>();
     _oldType = new Classifier(Old);
     _newType = new Classifier(New);
     _classifiers.FindByName(Old).Returns(_oldType);
     _classifiers.FindByName(New).Returns(_newType);
 }
        public void RenameClassifierTest()
        {
            var oldName = RandomString(1);
            var newName = RandomString(2);

            var classifier = new Classifier(oldName);
            _classifiers = new ClassifierDictionary(classifier);
            _classifiers.RenameClassifier(classifier, newName);

            Assert.AreEqual(newName, classifier.Name);
            Assert.IsTrue(_classifiers.IsClassNameFree(oldName));
            Assert.IsNotNull(_classifiers.FindByName(newName));
        }