diff --git a/Sources/Linaris/MainPage.xaml.cs b/Sources/Linaris/MainPage.xaml.cs index 9e8598f..de3a24b 100644 --- a/Sources/Linaris/MainPage.xaml.cs +++ b/Sources/Linaris/MainPage.xaml.cs @@ -7,7 +7,8 @@ public partial class MainPage : ContentPage public MainPage() { InitializeComponent(); - } + + } /*private void OnCounterClicked(object sender, EventArgs e) { @@ -20,5 +21,13 @@ public partial class MainPage : ContentPage SemanticScreenReader.Announce(CounterBtn.Text); }*/ + + /*async public void Go_Home() + { + await Navigation.PushAsync(new MainPage()); + + }*/ + + } diff --git a/Sources/TestUnitaires/TU_Artiste.cs b/Sources/TestUnitaires/TU_Artiste.cs index cb12bbd..4b24884 100644 --- a/Sources/TestUnitaires/TU_Artiste.cs +++ b/Sources/TestUnitaires/TU_Artiste.cs @@ -15,6 +15,21 @@ namespace TestUnitaires { Assert.True(name != null && name.Length < 75); } + + [Theory] + [InlineData("Hugo TSR")] + [InlineData(null)] + [InlineData("Hugo TSRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR")] + public void TU_Methods(string name) + { + Artiste a = new Artiste(name); + Album a1 = new Album("Fenêtre sur Rue", "album2. jpg", a, "Un banger", "Sortie : 2012"); + List verif = new List(); + verif.Add(a1); + a.AddAlbum(a1); + Assert.True(a.Albums == verif); + + } } } \ No newline at end of file