public void CreateInstance_WithType()
        {
            TypeElement <SampleType> typeElement = new TypeElement <SampleType>();

            typeElement.Type = typeof(DerivedSampleType);

            Assert.IsInstanceOf(typeof(DerivedSampleType), typeElement.CreateInstance());
        }
        public void CreateInstance_WithoutType()
        {
            TypeElement <SampleType> typeElement = new TypeElement <SampleType>();

            Assert.That(typeElement.CreateInstance(), Is.Null);
        }