Пример #1
0
        public void GetProcessor_RegisteredDifferentCase_Returned()
        {
            Mock<IParameterProcessor> processor = new Mock<IParameterProcessor>();

            ParameterProcessorMap map = new ParameterProcessorMap();
            map.SetProcessor("blah", processor.Object);

            Assert.Same(processor.Object, map.GetProcessor("BLAH"));
        }
        public void GetProcessor_RegisteredDifferentCase_Returned()
        {
            Mock <IParameterProcessor> processor = new Mock <IParameterProcessor>();

            ParameterProcessorMap map = new ParameterProcessorMap();

            map.SetProcessor("blah", processor.Object);

            Assert.AreSame(processor.Object, map.GetProcessor("BLAH"));
        }
        public void GetProcessor_Registered_Returned()
        {
            var processor = new Mock <IParameterProcessor>();

            var map = new ParameterProcessorMap();

            map.SetProcessor("BLAH", processor.Object);

            Assert.Same(processor.Object, map.GetProcessor("BLAH"));
        }
        public void GetProcessor_NotRegistered_Null()
        {
            ParameterProcessorMap map = new ParameterProcessorMap();

            Assert.IsNull(map.GetProcessor("BLAH"));
        }
Пример #5
0
 public void GetProcessor_NotRegistered_Null()
 {
     ParameterProcessorMap map = new ParameterProcessorMap();
     Assert.Null(map.GetProcessor("BLAH"));
 }