public TestVerdict WritePerformanceConfig(string filePath) { try { Setup(); var testProfile = new TestProfile(2, new TimeSpan(0, 0, 0, 30, 300), "TestAnalyst"); TestProfile.WritetoFile(testProfile, filePath); testProfile = TestProfile.ReadFromFile(filePath); TestVerdict = TestVerdict.Pass; TestMessage = testProfile.ToString(); } catch (Exception e) { TestMessage += e.ToString(); TestVerdict = TestVerdict.Error; } finally { Teardown(); } return(TestVerdict); }