Esempio n. 1
0
        public void ToSpecVersionJsonReturnsStringForHigherVersions()
        {
            // Arrange
            var version = new ModuleVersion("v1.2");

            // Act
            var result = version.ToSpecVersionJson();

            // Assert
            Assert.That((string)result == "v1.2", Is.True,
                        "ToSpecVersionJson() should return a string for versions higher than 1."
                        );
        }
Esempio n. 2
0
        public void ToSpecVersionJsonReturnsIntegerForVersion1()
        {
            // Arrange
            var version = new ModuleVersion("v1.0");

            // Act
            var result = version.ToSpecVersionJson();

            // Assert
            Assert.That((int)result == 1, Is.True,
                        "ToSpecVersionJson() should return the integer 1 for version 1"
                        );
        }