public void GetDoseUnitTest1() { var query = MayoQuery.Read("D90%[cGy]"); var expected = DoseValue.DoseUnit.cGy; var actual = query.GetDoseUnit(); Assert.AreEqual(expected, actual); }
public void GetDoseUnitTest3() { var query = MayoQuery.Read("V90Gy[%]"); var expected = DoseValue.DoseUnit.Gy; var actual = query.GetDoseUnit(); Assert.AreEqual(expected, actual); }
public void GetDosePresentationTest5() { var query = MayoQuery.Read("Mean[cGy]"); var expected = DoseValuePresentation.Absolute; var actual = query.GetDosePresentation(); Assert.AreEqual(expected, actual); }
public void GetDosePresentationTest4() { var query = MayoQuery.Read("V90%[cc]"); var expected = DoseValuePresentation.Relative; var actual = query.GetDosePresentation(); Assert.AreEqual(expected, actual); }
public void GetVolumePresentationTest3() { var query = MayoQuery.Read("V90%[cc]"); var expected = VolumePresentation.AbsoluteCm3; var actual = query.GetVolumePresentation(); Assert.AreEqual(expected, actual); }
public void GetVolumePresentationTest2() { var query = MayoQuery.Read("D90%[cGy]"); var expected = VolumePresentation.Relative; var actual = query.GetVolumePresentation(); Assert.AreEqual(expected, actual); }
public void GetDoseUnitTest4() { var query = MayoQuery.Read("Max[%]"); var expected = DoseValue.DoseUnit.Percent; var actual = query.GetDoseUnit(); Assert.AreEqual(expected, actual); }
public static double ExecuteQuery(this PlanningItem pi, string mayoFormatQuery, params string[] ss) { var query = MayoQuery.Read(mayoFormatQuery); return(ExecuteQuery(pi, query, ss)); }
public static double ExecuteQuery(this PlanningItem pi, Structure s, string mayoFormatQuery) { var query = MayoQuery.Read(mayoFormatQuery); return(query.RunQuery(pi, new[] { s })); }
public static double ExecuteQuery(this PlanningItem pi, IEnumerable <Structure> ss, string mayoFormatQuery) { var query = MayoQuery.Read(mayoFormatQuery); return(query.RunQuery(pi, ss)); }