public void TypeConversionAttributeConstructor() { tlog.Debug(tag, $"TypeConversionAttributeConstructor START"); Type type = typeof(string); TypeConversionAttribute t2 = new TypeConversionAttribute(type); tlog.Debug(tag, $"TypeConversionAttributeConstructor END (OK)"); Assert.Pass("TypeConversionAttributeConstructor"); }
public void TypeConversionAttributeConstructor() { tlog.Debug(tag, $"TypeConversionAttributeConstructor START"); Type type = typeof(string); TypeConversionAttribute t2 = new TypeConversionAttribute(type); Assert.IsNotNull(t2, "null TypeConversionAttribute"); Assert.IsInstanceOf <TypeConversionAttribute>(t2, "Should return TypeConversionAttribute instance."); tlog.Debug(tag, $"TypeConversionAttributeConstructor END"); }
public void TypeConversionAttributeTargetType() { tlog.Debug(tag, $"TypeConversionAttributeTargetType START"); try { Type type = typeof(string); TypeConversionAttribute t1 = new TypeConversionAttribute(type); Assert.AreEqual(type, t1.TargetType, "Should be equal"); } catch (Exception e) { Assert.Fail("Caught Exception" + e.ToString()); } tlog.Debug(tag, $"TypeConversionAttributeTargetType END"); }
public void Destroy() { conversionAttr = null; tlog.Info(tag, "Destroy() is called!"); }
public void Destroy() { t1 = null; tlog.Info(tag, "Destroy() is called!"); }
public void Init() { tlog.Info(tag, "Init() is called!"); Type type = typeof(string); TypeConversionAttribute t1 = new TypeConversionAttribute(type); }