示例#1
0
        public void ApplicationUpdate_VersionIsGreaterThan_ReturnsFalseWhenVersionFailsToParse()
        {
            // Arrange
            var update = new ApplicationUpdate {
                Version = "FailsToParse"
            };
            // Act
            bool result = update.VersionIsGreaterThan(0);

            // Assert
            Assert.IsFalse(result);
        }
示例#2
0
        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);
        }