public void ValueUnformattedExtractionSuccessCaseTest2() { string expected = "regarder"; LanguageDirector director = new LanguageDirector(); LanguageBuilder frenchBuilder = new LanguageFrenchBuilder("regarder, examiner"); director.ConstructUnformattedImport(frenchBuilder); string actual = frenchBuilder.GetResult().Value; Assert.AreEqual(expected, actual); }
public void ExempleUnformattedExtractionSuccessCaseTest1() { string expected = "you must carry out the instructions carefully"; LanguageDirector director = new LanguageDirector(); LanguageBuilder frenchBuilder = new LanguageFrenchBuilder("effectuer, réaliser, mener, mener à éxécution, suivre ex: you must carry out the instructions carefully"); director.ConstructUnformattedImport(frenchBuilder); string actual = frenchBuilder.GetResult().Example; Assert.AreEqual(expected, actual); }
public void ValueFormattedImportSuccessCaseTest2() { string expected = "regarder"; LanguageDirector director = new LanguageDirector(); LanguageBuilder frenchBuilder = new LanguageFrenchBuilder("regarder {C=}{E=test}{T=undefined}{S= examiner}"); director.ConstructformattedImport(frenchBuilder); string actual = frenchBuilder.GetResult().Value; Assert.AreEqual(expected, actual); }
public void CommentUnformattedExtractionSuccessCaseTest1() { string expected = "vacances"; LanguageDirector director = new LanguageDirector(); LanguageBuilder frenchBuilder = new LanguageFrenchBuilder("reporter à(vacances)"); director.ConstructUnformattedImport(frenchBuilder); string actual = frenchBuilder.GetResult().Comment; Assert.AreEqual(expected, actual); }
public void SynonymsUnformattedExtractionSuccessCaseTest1() { List <string> expected = new List <string> { "réaliser", "mener", "mener à éxécution", "suivre" }; LanguageDirector director = new LanguageDirector(); LanguageBuilder frenchBuilder = new LanguageFrenchBuilder("effectuer, réaliser, mener, mener à éxécution, suivre ex: you must carry out the instructions carefully"); director.ConstructUnformattedImport(frenchBuilder); List <string> actual = frenchBuilder.GetResult().Synonysms; CollectionAssert.AreEqual(expected, actual); }
public void SynonysmsFormattedImportSuccessCaseTest3() { List <string> expected = new List <string> { "" }; LanguageDirector director = new LanguageDirector(); LanguageBuilder frenchBuilder = new LanguageFrenchBuilder("regarder {C=}{E=}{T=undefined}{S=}"); director.ConstructformattedImport(frenchBuilder); List <string> actual = frenchBuilder.GetResult().Synonysms; CollectionAssert.AreEqual(expected, actual); }