Esempio n. 1
0
        public void NotThrowExceptionWhenTryingToSaveTeacherOnEmptyFile()
        {
            Assert.IsFalse(File.Exists(pathProvider.GetTeamFileName()));
            var equipe = new EquipeEnseignante(Array.Empty <Enseignant>());

            Assert.DoesNotThrow(() => teamRepository.AddOrUpdateEnseignant(equipe, Enseignant1));
            Assert.IsTrue(File.Exists(pathProvider.GetTeamFileName()));
            Assert.Greater(new FileInfo(pathProvider.GetTeamFileName()).Length, 0);
        }