public void projectPi_valid_method(string filePath, bool expected)
        {
            string    project_toml = File.ReadAllText(filePath);
            ProjectPi project      = TomlHelpers.GetInstanceFromToml <ProjectPi>(project_toml);

            Assert.That(project.isValid().Item1, Is.EqualTo(expected));
        }
Exemplo n.º 2
0
        public void is_the_downloaded_file_a_valid_project()
        {
            ProjectPi onlineProject = TomlHelpers.GetInstanceFromToml <ProjectPi>(TomlHelpers.GetOnlineToml(GetTomlFromGoogleDrive.GetUrlRessource("https://drive.google.com/open?id=1TSwBj4-pMtqnUCoSJqkZVte0Ah2Z3fxC")));

            Assert.That(onlineProject.isValid().Item1, Is.True);
        }