public void ApplicationUpdate_VersionIsGreaterThan_ReturnsFalseWhenVersionFailsToParse() { // Arrange var update = new ApplicationUpdate { Version = "FailsToParse" }; // Act bool result = update.VersionIsGreaterThan(0); // Assert Assert.IsFalse(result); }
public void ApplicationUpdate_VersionIsGreaterThan_ReturnsFalse() { // Arrange var update = new ApplicationUpdate { Version = "1.0.0.0" }; // Act bool result = update.VersionIsGreaterThan(Application.ParseVersionNumber("1.0.0.1")); // Assert Assert.IsFalse(result); }