コード例 #1
0
        private static void AssertExpectedPackage(IPackage actual, string expectedId, string expectedVersion)
        {
            actual.Should().NotBeNull("The package should not be null");

            SemanticVersion sVersion = new SemanticVersion(expectedVersion);

            expectedId.Should().Be(actual.Id, "Unexpected package id");
            sVersion.Should().Be(actual.Version, "Unexpected package version");
        }
コード例 #2
0
        public void Should_not_be_equivalent()
        {
            // Arrange
            var first = new SemanticVersion(1, 0, 0, SemanticVersion.Stage.Pre, 1, "build.001");
            var second = new SemanticVersion(1, 1, 0, SemanticVersion.Stage.Pre, 1, "build.001");

            // Act
            // Assert
            first.Should().NotBe(second);
        }