public void Calculates_member_effective_lines_of_code() { CodeModelFactory factory = new CodeModelFactory(); List <CaDETClass> classes = factory.CreateProject(_testDataFactory.GetEffectiveLinesOfCodeTest()).Classes; var doctor = classes.First(); doctor.FindMember("Doctor").Metrics[CaDETMetric.MELOC].ShouldBe(1); doctor.FindMember("IsAvailable").Metrics[CaDETMetric.MELOC].ShouldBe(2); }