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)); }
public void GetExtendsText_TypeNameConvertersNull_ExceptionThrown() { var tsContentGenerator = new TsContentGenerator(_typeDependencyService, _typeService, _templateService, _tsContentParser, _metadataReader); Assert.Throws <ArgumentNullException>(() => tsContentGenerator.GetExtendsText(typeof(string), null)); }
public void GetExtendsText_TypeNull_ExceptionThrown() { var tsContentGenerator = new TsContentGenerator(_typeDependencyService, _typeService, _templateService, _tsContentParser); Assert.Throws <ArgumentNullException>(() => tsContentGenerator.GetExtendsText(null, new TypeNameConverterCollection())); }