// ReSharper disable InconsistentNaming - Unit Tests public void GetInstanceAssociation_With_InvalidFileName_Expected_ReturnsEmptyGuid() // ReSharper restore InconsistentNaming { const string InvalidInstanceId = "99999"; var instanceKey = Guid.NewGuid(); var path = Path.Combine(TestPath, string.Format("Key.{0}.{1}.xml", instanceKey, InvalidInstanceId)); try { var xml = XmlResource.Fetch(TestFileName); xml.Save(path); var store = new FileSystemInstanceStoreIO(); var result = store.GetInstanceAssociation(instanceKey); Assert.AreEqual(Guid.Empty, result); } finally { if(File.Exists(path)) { File.Delete(path); } } }