public void CanCreateVersionFromFullText() { const string firstFullText = "0.1.0.0 Alpha 1"; Assert.AreEqual(UpdateVersion.FromFullText(firstFullText).ToString(), "0.1.0.0a1"); const string secondFullText = "0.1.0.0 ReleaseCandidate"; Assert.AreEqual(UpdateVersion.FromFullText(secondFullText).ToString(), "0.1.0.0rc"); const string thirdFullText = "0.1.0.0"; Assert.AreEqual(UpdateVersion.FromFullText(thirdFullText).ToString(), "0.1.0.0"); }