private static void RunTest(string testName, bool exepectedTracking, TrackingLevel exepectedStoryLevel, TrackingLevel expectedDefectLevel) { V1Configuration testSubject = new V1Configuration(new XmlResponseConnector("TestData.xml", "config.v1/" + testName, "V1ConfigurationTester")); Assert.AreEqual(exepectedTracking, testSubject.EffortTracking); Assert.AreEqual(exepectedStoryLevel, testSubject.StoryTrackingLevel); Assert.AreEqual(expectedDefectLevel, testSubject.DefectTrackingLevel); }
private static void RunTest(string testName, bool exepectedTracking, TrackingLevel exepectedStoryLevel, TrackingLevel expectedDefectLevel, string expectedCapacityPlanning = null) { V1Configuration testSubject = new V1Configuration(new XmlResponseConnector("TestData.xml", "config.v1/" + testName, "V1ConfigurationTester")); Assert.AreEqual(exepectedTracking, testSubject.EffortTracking); Assert.AreEqual(exepectedStoryLevel, testSubject.StoryTrackingLevel); Assert.AreEqual(expectedDefectLevel, testSubject.DefectTrackingLevel); Assert.AreEqual(expectedCapacityPlanning, testSubject.CapacityPlanning); }