public void Buildnumber_Is_Parsed_Correctly(string version, string buildnr)
        {
            var appenv_mock = new Mock <IApplicationEnvironment>();

            appenv_mock.Setup(foo => foo.ApplicationVersion).Returns(version).Verifiable();

            var provider = new WebApiVersionProvider(appenv_mock.Object);

            Assert.Equal(buildnr, provider.GetCurrentVersion().BuildNumber);
            appenv_mock.Verify();
        }
        public void Version_Equals_null_Is_Parsed_Correctly()
        {
            var appenv_mock = new Mock <IApplicationEnvironment>();

            appenv_mock.Setup(foo => foo.ApplicationVersion).Verifiable();

            var provider = new WebApiVersionProvider(appenv_mock.Object);

            Assert.Equal("", provider.GetCurrentVersion().MajorVersion);
            appenv_mock.Verify();
        }
        public void ApplicationBasePath_Equals_null_Is_Parsed_Correctly()
        {
            var appenv_mock = new Mock <IApplicationEnvironment>();

            appenv_mock.Setup(foo => foo.ApplicationBasePath).Verifiable();

            var provider = new WebApiVersionProvider(appenv_mock.Object);

            Assert.Equal("?", provider.GetCurrentVersion().BuildDate);
            //Assert.Equal("?", provider.GetCurrentVersion().BuildNumber);
            appenv_mock.Verify();
        }