Beispiel #1
0
        public void Parse_GoodVersion_ReturnsVersion()
        {
            // Act

            var version = ClusterVersion.Parse("1.0.0");

            // Assert

            Assert.Equal(new ClusterVersion(new System.Version(1, 0, 0)), version);
        }
Beispiel #2
0
        public void Parse_BadVersion_ThrowsFormatException()
        {
            // Act/Assert

            Assert.Throws <FormatException>(() => ClusterVersion.Parse("abcd"));
        }