CLASS YamlParserTests
- Namespace: test.Parser
- Source File: YAMLParserTests.cs
Public Methods
GetSection_ShouldReturnFirstFolderName
public void GetSection_ShouldReturnFirstFolderName()
ParseFrontMatter_ShouldParseTitleCorrectly
public void ParseFrontMatter_ShouldParseTitleCorrectly(string fileContent, string expectedTitle)
Parameters:
fileContent(string)expectedTitle(string)
ParseFrontMatter_ShouldParseDateCorrectly
public void ParseFrontMatter_ShouldParseDateCorrectly(string fileContent, string expectedDateString)
Parameters:
fileContent(string)expectedDateString(string)
ParseFrontMatter_ShouldParseOtherFieldsCorrectly
public void ParseFrontMatter_ShouldParseOtherFieldsCorrectly()
ParseFrontMatter_ShouldThrowFormatException_WhenInvalidYAMLSyntax
public void ParseFrontMatter_ShouldThrowFormatException_WhenInvalidYAMLSyntax()
ParseSiteSettings_ShouldReturnSiteWithCorrectSettings
public void ParseSiteSettings_ShouldReturnSiteWithCorrectSettings()
ParseParams_ShouldFillParamsWithNonMatchingFields
public void ParseParams_ShouldFillParamsWithNonMatchingFields()
ParseFrontMatter_ShouldParseContentInSiteFolder
public void ParseFrontMatter_ShouldParseContentInSiteFolder()
ParseFrontMatter_ShouldCreateTags
public void ParseFrontMatter_ShouldCreateTags()
FrontMatterParse_RawContentNull
public void FrontMatterParse_RawContentNull()
ParseYAML_ShouldThrowExceptionWhenFrontMatterIsInvalid
public void ParseYAML_ShouldThrowExceptionWhenFrontMatterIsInvalid()
ParseYAML_ShouldSplitTheFrontMatter
public void ParseYAML_ShouldSplitTheFrontMatter()
ParseSiteSettings_ShouldReturnSiteSettings
public void ParseSiteSettings_ShouldReturnSiteSettings()
SiteParams_ShouldHandleEmptyContent
public void SiteParams_ShouldHandleEmptyContent()
SiteParams_ShouldPopulateParamsWithExtraFields
public void SiteParams_ShouldPopulateParamsWithExtraFields()
FrontMatter_ShouldIgnoreCase
public void FrontMatter_ShouldIgnoreCase(string fileContent)
Parameters:
fileContent(string)
SiteSettings_ShouldIgnoreCase
public void SiteSettings_ShouldIgnoreCase(string fileContent)
Parameters:
fileContent(string)