Exemplo n.º 1
0
        public void Execute_UsesAssemblyRevision_IfRevisionIsNotSet(string assemblyVersion)
        {
            // Arrange
            var getAssemblyFileVersion = new GetAssemblyFileVersion
            {
                AssemblyVersion  = assemblyVersion,
                AssemblyRevision = 78,
            };

            // Act
            var result = getAssemblyFileVersion.Execute();

            // Assert
            Assert.True(result);
            Assert.Equal("1.2.3.78", getAssemblyFileVersion.AssemblyFileVersion);
        }
Exemplo n.º 2
0
        public void Execute_SetsAssemblyFileVersionToAssemblyVersion_IfRevisionIsSet()
        {
            // Arrange
            var getAssemblyFileVersion = new GetAssemblyFileVersion
            {
                AssemblyVersion  = "1.2.3.4",
                AssemblyRevision = 78,
            };

            // Act
            var result = getAssemblyFileVersion.Execute();

            // Assert
            Assert.True(result);
            Assert.Equal("1.2.3.4", getAssemblyFileVersion.AssemblyFileVersion);
        }