public void TestGetImplTypeWithImplType()
        {
            // Arrange
            var actor = new ImplementationAttributeImplTypeFactory();

            // Act
            var actual = actor.GetImplType(typeof(ImplAttrAttachedWithImplTypeClass));

            // Assert
            Assert.AreEqual(typeof(string), actual);
        }
        public void TestGetImplTypeNotAttachedImplementationAttribute()
        {
            // Arrange
            var actor = new ImplementationAttributeImplTypeFactory();

            // Act
            var actual = actor.GetImplType(typeof(ImplAttrNotAttachedClass));

            // Assert
            Assert.IsNull(actual);
        }
 private ImplTypeFactories GetFactory()
 {
     var typeMap = new Dictionary<Type, Type>();
     typeMap.Add(typeof(IImplTypeFactory), typeof(MappingImplTypeFactory));
     var factory1 = new MappingImplTypeFactory(typeMap);
     var factory2 = new ImplementationAttributeImplTypeFactory();
     var actor = new ImplTypeFactories();
     actor.AddFactory(factory1);
     actor.AddFactory(factory2);
     return actor;
 }
 public void TestDispose()
 {
     var actor = new ImplementationAttributeImplTypeFactory();
     actor.Dispose(); // 処理なしなので、呼んでも特に例外とはならないことを確認
 }