public void GetCustomBody_FilePathNull_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.GetCustomBody(null, 0)); }
public void GetCustomBody_FilePathNull_ExceptionThrown() { var tsContentGenerator = new TsContentGenerator(_typeDependencyService, _typeService, _templateService, _tsContentParser, _metadataReader); Assert.Throws <ArgumentNullException>(() => tsContentGenerator.GetCustomBody(null, 0)); }