Ejemplo n.º 1
0
        public void GetExtendsText_TypeNull_ExceptionThrown()
        {
            //arrange
            var generatorOptionsProvider = new GeneratorOptionsProvider {
                GeneratorOptions = new GeneratorOptions()
            };
            var tsContentGenerator = new TsContentGenerator(_typeDependencyService, _typeService, _templateService, _tsContentParser, _metadataReaderFactory, generatorOptionsProvider, null);

            //act,assert
            Assert.Throws <ArgumentNullException>(() => tsContentGenerator.GetExtendsText(null));
        }
Ejemplo n.º 2
0
        public void GetExtendsText_TypeNameConvertersNull_ExceptionThrown()
        {
            var tsContentGenerator = new TsContentGenerator(_typeDependencyService, _typeService, _templateService, _tsContentParser, _metadataReader);

            Assert.Throws <ArgumentNullException>(() => tsContentGenerator.GetExtendsText(typeof(string), null));
        }
Ejemplo n.º 3
0
        public void GetExtendsText_TypeNull_ExceptionThrown()
        {
            var tsContentGenerator = new TsContentGenerator(_typeDependencyService, _typeService, _templateService, _tsContentParser);

            Assert.Throws <ArgumentNullException>(() => tsContentGenerator.GetExtendsText(null, new TypeNameConverterCollection()));
        }