Ejemplo n.º 1
0
        public void TestGetHashCode()
        {
            var release = new IoTEdgeRelease(
                123213,
                343406,
                "test-release",
                new Uri("http://abc.com/test/uri"),
                new HashSet <IoTEdgeReleaseEnvironment>
            {
                new IoTEdgeReleaseEnvironment(3423, 8790, VstsEnvironmentStatus.NotStarted),
                new IoTEdgeReleaseEnvironment(784, 23903, VstsEnvironmentStatus.InProgress)
            });

            Assert.AreEqual(123213, release.GetHashCode());
        }
Ejemplo n.º 2
0
        public void TestGetHashCode()
        {
            var release = new IoTEdgeRelease(
                123213,
                ReleaseDefinitionId.E2ETest,
                "test-release",
                "branch1",
                VstsReleaseStatus.Active,
                new Uri("http://abc.com/test/uri"),
                new HashSet <IoTEdgeReleaseEnvironment>
            {
                new IoTEdgeReleaseEnvironment(3423, 8790, "Any name", VstsEnvironmentStatus.NotStarted, new HashSet <IoTEdgeReleaseDeployment>()),
                new IoTEdgeReleaseEnvironment(784, 23903, "Any name", VstsEnvironmentStatus.InProgress, new HashSet <IoTEdgeReleaseDeployment>())
            });

            Assert.AreEqual(123213, release.GetHashCode());
        }