public override void TetGetStringVersionFromHeader_WithRevision_Found() { IStringParser parser = GetParser("<Header>1.1.1</Header>"); string versionFromHeader = parser.GetVersionFromHeader(); Assert.AreEqual("1.1.1", versionFromHeader); }
public override void TestGetStringVersionFromHeader_SingleDigit_Found() { IStringParser parser = GetParser("<Header>1</Header>"); string versionFromHeader = parser.GetVersionFromHeader(); Assert.AreEqual("1", versionFromHeader); }
public void GetStringVersionFromHeader_WithRevision_Found() { string input = HeaderVersion_WithRevision; IStringParser parser = GetParser(input); string versionFromHeader = parser.GetVersionFromHeader(); Assert.AreEqual(EXPECTED_WITH_REVISION, versionFromHeader); }
public void GetStringVersionFromHeader_SingleDigit_Found() { string input = HeaderVersion_SingleDigit; IStringParser parser = GetParser(input); string versionFromHeader = parser.GetVersionFromHeader(); Assert.AreEqual(EXPECTED_SINGLE_DIGIT, versionFromHeader); }
public void GetStringVersionFromHeader_SingleDigit_Found() { const string version = "1"; string input = GetInputWithCorrectHeaderAndVersion(version); IStringParser parser = GetParser(); string versionFromHeader = parser.GetVersionFromHeader(input); Assert.AreEqual("1", versionFromHeader); }