public void ParseVersionString_CheckEsValue_Success()
        {
            ConnectionServerRest oTempServer = new ConnectionServerRest(new RestTransportFunctions());

            Assert.IsTrue(oTempServer.ParseVersionString("1.2.3.4ES5"), "Failed to parse legal version string");
            Assert.AreEqual(oTempServer.Version.Es, 5, "ES is not parsed out correctly");
        }
        public void ParseVersionString_LegalValueWithEs_Success()
        {
            ConnectionServerRest oTempServer = new ConnectionServerRest(new RestTransportFunctions());

            Assert.IsTrue(oTempServer.ParseVersionString("1.2.3.4ES5"), "Failed to parse legal version string");
        }
        public void ParseVersionString_Legal3PartValue_Success()
        {
            ConnectionServerRest oTempServer = new ConnectionServerRest(new RestTransportFunctions());

            Assert.IsTrue(oTempServer.ParseVersionString("1.2.3"), "Failed to parse legal version string with 3 elements");
        }
        public void ParseVersionString_InvalidEsValue_Failure()
        {
            ConnectionServerRest oTempServer = new ConnectionServerRest(new RestTransportFunctions());

            Assert.IsFalse(oTempServer.ParseVersionString("1.2.3.4ES4ES"), "Invalid ES");
        }
        public void ParseVersionString_InvalidMinorVersionValue_Failure()
        {
            ConnectionServerRest oTempServer = new ConnectionServerRest(new RestTransportFunctions());

            Assert.IsFalse(oTempServer.ParseVersionString("1.a.3"), "Invalid minor");
        }
        public void ParseVersionString_InvalidParts2_Failure()
        {
            ConnectionServerRest oTempServer = new ConnectionServerRest(new RestTransportFunctions());

            Assert.IsFalse(oTempServer.ParseVersionString("1.2"), "Invalid number of version parts");
        }
        public void ParseVersionString_EmptyString_Failure()
        {
            ConnectionServerRest oTempServer = new ConnectionServerRest(new RestTransportFunctions());

            Assert.IsFalse(oTempServer.ParseVersionString(""), "Empty string");
        }