public void Data_ValidFile_RetrievesCorrectData() { var target = new CCMParser(); target.LoadData(@"UnitTestData\ccmReport.xml"); var actual = target.Data; Assert.IsTrue(actual.Contains(new CCDataEntry("Class1","method1",2))); Assert.IsTrue(actual.Contains(new CCDataEntry("Class1","method2",1))); Assert.IsTrue(actual.Contains(new CCDataEntry("Class1",".ctor",1))); Assert.AreEqual(3, actual.Count); }
public void LoadData_InvalidFileName_throwsException() { var target = new CCMParser(); target.LoadData("NoSuchFile.xml"); }
public void Data_FileNotLoaded_ThrowsException() { var target = new CCMParser(); var dummy = target.Data; }