Example #1
0
        public void DoesNotOverwriteExceptInstructed()
        {
            Assert.IsNotNull(vcard);
            string assemblyFolder = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
            string filePath       = Path.Combine(assemblyFolder, "invalid.vcf");

            Assert.Throws <InvalidOperationException>(delegate {
                vcard.Save(filePath);
            });
        }