Example #1
0
        public void GivenAStringIsTriedToBeParsedAsAVersion(string printed)
        {
            DomainVersion version;
            bool          succeed = DomainVersion.TryParse(printed, out version);

            succeed.TestValue(nameof(succeed));
            if (succeed)
            {
                version.TestValue();
            }
        }
Example #2
0
 public void GivenAVersionIsParsedAndStoredIn(string version, string variable)
 {
     SpecUtils.TestValue(() => DomainVersion.Parse(version), variable);
 }
Example #3
0
 public void GivenAStringIsParsedAsAVersion(string printed)
 {
     SpecUtils.TestValueProtected(() => DomainVersion.Parse(printed));
 }