Skip to content

Commit 8cc07d4

Browse files
committed
update unit tests
1 parent f466dec commit 8cc07d4

File tree

9 files changed

+131
-111
lines changed

9 files changed

+131
-111
lines changed

GitAutoUpdateGUI/App.config

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
<?xml version="1.0" encoding="utf-8" ?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<configuration>
33
<configSections>
4-
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
5-
<section name="GitAutoUpdateGUI.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
4+
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
5+
<section name="GitAutoUpdateGUI.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false"/>
66
</sectionGroup>
77
</configSections>
88
<startup>
9-
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
9+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
1010
</startup>
1111
<userSettings>
1212
<GitAutoUpdateGUI.Properties.Settings>
@@ -29,13 +29,13 @@
2929
<value>0</value>
3030
</setting>
3131
<setting name="textBoxVSProjectPath" serializeAs="String">
32-
<value />
32+
<value/>
3333
</setting>
3434
<setting name="checkBoxGitBashInstalled" serializeAs="String">
3535
<value>False</value>
3636
</setting>
3737
<setting name="textBoxGitBashBinariesPath" serializeAs="String">
38-
<value />
38+
<value/>
3939
</setting>
4040
<setting name="checkBoxCreateUpdateFile" serializeAs="String">
4141
<value>False</value>

GitAutoUpdateGUI/GitAutoUpdateGUI.csproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@
99
<AppDesignerFolder>Properties</AppDesignerFolder>
1010
<RootNamespace>GitAutoUpdateGUI</RootNamespace>
1111
<AssemblyName>GitAutoUpdateGUI</AssemblyName>
12-
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
12+
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
1313
<FileAlignment>512</FileAlignment>
14+
<TargetFrameworkProfile />
1415
</PropertyGroup>
1516
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1617
<PlatformTarget>AnyCPU</PlatformTarget>
@@ -76,6 +77,7 @@
7677
<Compile Include="Properties\Resources.Designer.cs">
7778
<AutoGen>True</AutoGen>
7879
<DependentUpon>Resources.resx</DependentUpon>
80+
<DesignTime>True</DesignTime>
7981
</Compile>
8082
<None Include="packages.config" />
8183
<None Include="Properties\Settings.settings">

GitAutoUpdateGUI/Language.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
The MIT License(MIT)
3-
Copyright(c) 2015 Freddy Juhel
3+
Copyright(c) 2015-2022 Freddy Juhel
44
Permission is hereby granted, free of charge, to any person obtaining a copy
55
of this software and associated documentation files (the "Software"), to deal
66
in the Software without restriction, including without limitation the rights

GitAutoUpdateGUI/Properties/Resources.Designer.cs

Lines changed: 49 additions & 57 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

GitAutoUpdateGUI/Properties/Settings.Designer.cs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

GitAutoUpdateGUI/Punctuation.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
The MIT License(MIT)
3-
Copyright(c) 2015 Freddy Juhel
3+
Copyright(c) 2015-2022 Freddy Juhel
44
Permission is hereby granted, free of charge, to any person obtaining a copy
55
of this software and associated documentation files (the "Software"), to deal
66
in the Software without restriction, including without limitation the rights

GitAutoUpdateGUI/Settings.cs

Lines changed: 29 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,31 @@
1-
namespace GitAutoUpdateGUI.Properties {
2-
3-
4-
// Cette classe vous permet de gérer des événements spécifiques dans la classe de paramètres :
5-
// L'événement SettingChanging est déclenché avant la modification d'une valeur de paramètre.
6-
// L'événement PropertyChanged est déclenché après la modification d'une valeur de paramètre.
7-
// L'événement SettingsLoaded est déclenché après le chargement des valeurs de paramètre.
8-
// L'événement SettingsSaving est déclenché avant l'enregistrement des valeurs de paramètre.
9-
internal sealed partial class Settings {
10-
11-
public Settings() {
12-
// // Pour ajouter des gestionnaires d'événements afin d'enregistrer et de modifier les paramètres, supprimez les marques de commentaire des lignes ci-dessous :
13-
//
14-
// this.SettingChanging += this.SettingChangingEventHandler;
15-
//
16-
// this.SettingsSaving += this.SettingsSavingEventHandler;
17-
//
18-
}
19-
20-
private void SettingChangingEventHandler(object sender, System.Configuration.SettingChangingEventArgs e) {
21-
// Ajouter du code pour gérer l'événement SettingChangingEvent ici.
22-
}
23-
24-
private void SettingsSavingEventHandler(object sender, System.ComponentModel.CancelEventArgs e) {
25-
// Ajouter du code pour gérer l'événement SettingsSaving ici.
26-
}
1+
namespace GitAutoUpdateGUI.Properties
2+
{
3+
// Cette classe vous permet de gérer des événements spécifiques dans la classe de paramètres :
4+
// L'événement SettingChanging est déclenché avant la modification d'une valeur de paramètre.
5+
// L'événement PropertyChanged est déclenché après la modification d'une valeur de paramètre.
6+
// L'événement SettingsLoaded est déclenché après le chargement des valeurs de paramètre.
7+
// L'événement SettingsSaving est déclenché avant l'enregistrement des valeurs de paramètre.
8+
internal sealed partial class Settings
9+
{
10+
11+
public Settings()
12+
{
13+
// // Pour ajouter des gestionnaires d'événements afin d'enregistrer et de modifier les paramètres, supprimez les marques de commentaire des lignes ci-dessous :
14+
//
15+
// this.SettingChanging += this.SettingChangingEventHandler;
16+
//
17+
// this.SettingsSaving += this.SettingsSavingEventHandler;
18+
//
2719
}
20+
21+
private void SettingChangingEventHandler(object sender, System.Configuration.SettingChangingEventArgs e)
22+
{
23+
// Ajouter du code pour gérer l'événement SettingChangingEvent ici.
24+
}
25+
26+
private void SettingsSavingEventHandler(object sender, System.ComponentModel.CancelEventArgs e)
27+
{
28+
// Ajouter du code pour gérer l'événement SettingsSaving ici.
29+
}
30+
}
2831
}

UnitTestGitAutoUpdate/UnitTestGitAutoUpdate.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<AppDesignerFolder>Properties</AppDesignerFolder>
1010
<RootNamespace>UnitTestGitAutoUpdate</RootNamespace>
1111
<AssemblyName>UnitTestGitAutoUpdate</AssemblyName>
12-
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
12+
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
1313
<FileAlignment>512</FileAlignment>
1414
<ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
1515
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">15.0</VisualStudioVersion>
@@ -19,6 +19,7 @@
1919
<TestProjectType>UnitTest</TestProjectType>
2020
<NuGetPackageImportStamp>
2121
</NuGetPackageImportStamp>
22+
<TargetFrameworkProfile />
2223
</PropertyGroup>
2324
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
2425
<DebugSymbols>true</DebugSymbols>

0 commit comments

Comments
 (0)