public void GetStringversionFromHeader_WithRevision_Found() { string input = "header;version=1.1.1\n"; StandardStringParser parser = GetParser(input); string versionFromHeader = parser.GetTextVersionFromHeader(); Assert.AreEqual("1.1.1", versionFromHeader); }
public void GetStringVersionFromHeader_SingleDigit_Found() { string input = "header;version=1\n"; StandardStringParser parser = GetParser(input); string versionFromHeader = parser.GetTextVersionFromHeader(); Assert.AreEqual("1", versionFromHeader); }