Exemplo n.º 1
0
        public void IsApplicationVersionMoreRecentThan_WithEqualVersion_ReturnsFalse()
        {
            // Arrange
            AxDeploymentTestable.SetApplicationVersion("10.8.107.1233");

            // Act + Assert
            AxDeployment.IsApplicationVersionMoreRecentThan("10.8.107.1233").Should().BeFalse();
        }
Exemplo n.º 2
0
        public void IsApplicationVersionMoreRecentThan_WithPreviousVersion_ReturnsTrue()
        {
            // Arrange
            AxDeploymentTestable.SetApplicationVersion("10.8.107.1233");

            // Act + Assert
            AxDeployment.IsApplicationVersionMoreRecentThan("10.8.107.1232").Should().BeTrue();
            AxDeployment.IsApplicationVersionMoreRecentThan("10.8.106.1333").Should().BeTrue();
            AxDeployment.IsApplicationVersionMoreRecentThan("10.7.120.1230").Should().BeTrue();
            AxDeployment.IsApplicationVersionMoreRecentThan("9.1000.1.1234").Should().BeTrue();
        }
Exemplo n.º 3
0
            public static void SetApplicationVersion(string version)
            {
                AxDeploymentTestable testable = new AxDeploymentTestable();

                testable.ApplicationVersion = version;
            }