示例#1
0
文件: About.cs 项目: vego1mar/PI
 private void UpdateUiBySettings()
 {
     uiTech_DotNet2_TxtBx.Text  = Informations.TryGetDotNetFrameworkVersion();
     uiTech_LogPath2_TxtBx.Text = Informations.TryGetLogPath();
     uiMeta_Ver2_TxtBx.Text     = Informations.TryGetAssemblyVersion();
     uiMeta_Com2_TxtBx.Text     = Informations.TryGetCompanyName();
     uiOth_Ctr2_TxtBx.Text      = "0:00:00:00";
     uiOth_Repo2_TxtBx.Text     = "https://www.github.com/vego1mar/PI/releases";
 }
示例#2
0
        public void TryGetDotNetFrameworkVersion()
        {
            // given
            const string DOT_NET_FRAMEWORK_MAJOR_VERSION = "4.7";

            // when
            string result1 = Informations.TryGetDotNetFrameworkVersion();

            // then
            Assert.IsTrue(result1.Contains(DOT_NET_FRAMEWORK_MAJOR_VERSION));
        }