public void FileOperations_ProcessingVcardPeople_Test() { var message = ""; var cForm = new ContactFormVM(); cForm.ChosenContact = new Contact(); var list = FileOperations.FileCutting(@"C:\Users\Laci\Desktop\TesztVcard.vcf"); foreach (var item in list) { FileOperations.ProcessingVcardPeople(item, cForm.ChosenContact); } Assert.IsTrue(cForm.ChosenContactValidate(out message)); Assert.IsTrue(string.IsNullOrEmpty(message)); }
public void ContactFormVM_ChosenContactValidation_Test() { ContactFormVM contact = new ContactFormVM() { ChosenContact = new Contact() { Name = "Valaki", Email = "", Phone = "06791111111" } }; var message = ""; contact.ChosenContactValidate(out message); Assert.AreEqual("A email cím nincs kitöltve!", message); }