예제 #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));
        }
예제 #2
0
        public void GetExtendsText_TypeNameConvertersNull_ExceptionThrown()
        {
            var tsContentGenerator = new TsContentGenerator(_typeDependencyService, _typeService, _templateService, _tsContentParser, _metadataReader);

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

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