public void SetValue_Valid() { var sut = new VersionArgument(NAME, DESCRIPTION); sut.SetValue(VERSION); Assert.AreEqual(Version.Parse(VERSION), sut.Value); }
public void SetValue_Invalid() { try { var sut = new VersionArgument(NAME, DESCRIPTION); sut.SetValue("bogus"); } catch (Exception ex) { Assert.AreEqual("Argument 'name' is invalid", ex.Message); throw; } }