예제 #1
0
 public virtual void TestNullParameters()
 {
     IntervalFactory.CreateCentre((PlatformDate)null);
     IntervalFactory.CreateCentre((PlatformDate)null, (NullFlavor)null);
     IntervalFactory.CreateCentreHigh((PlatformDate)null, (PlatformDate)null);
     IntervalFactory.CreateCentreHigh((PlatformDate)null, (PlatformDate)null, (NullFlavor)null, (NullFlavor)null);
     IntervalFactory.CreateCentreWidth((PlatformDate)null, (Diff <PlatformDate>)null);
     IntervalFactory.CreateCentreWidth((PlatformDate)null, (Diff <PlatformDate>)null, (NullFlavor)null);
     IntervalFactory.CreateHigh((PlatformDate)null);
     IntervalFactory.CreateHigh((PlatformDate)null, (NullFlavor)null);
     IntervalFactory.CreateLow((PlatformDate)null);
     IntervalFactory.CreateLow((PlatformDate)null, (NullFlavor)null);
     IntervalFactory.CreateLowCentre((PlatformDate)null, (PlatformDate)null);
     IntervalFactory.CreateLowCentre((PlatformDate)null, (PlatformDate)null, (NullFlavor)null, (NullFlavor)null);
     IntervalFactory.CreateLowHigh((PlatformDate)null, (PlatformDate)null);
     IntervalFactory.CreateLowHigh((PlatformDate)null, (PlatformDate)null, (NullFlavor)null, (NullFlavor)null);
     IntervalFactory.CreateLowWidth((PlatformDate)null, (Diff <PlatformDate>)null);
     IntervalFactory.CreateLowWidth((PlatformDate)null, (Diff <PlatformDate>)null, (NullFlavor)null);
     IntervalFactory.CreateSimple((PlatformDate)null);
     IntervalFactory.CreateWidth((Diff <PlatformDate>)null);
     IntervalFactory.CreateWidthHigh((Diff <PlatformDate>)null, (PlatformDate)null);
     IntervalFactory.CreateWidthHigh((Diff <PlatformDate>)null, (PlatformDate)null, (NullFlavor)null);
 }
예제 #2
0
 /// <summary>Constructs an Interval using the supplied parameters.</summary>
 /// <remarks>Constructs an Interval using the supplied parameters.</remarks>
 /// <TBD></TBD>
 /// <param name="low">the low bound</param>
 /// <param name="width">the width as a Diff object</param>
 /// <returns>the constructed interval</returns>
 public static Interval <T> CreateLowWidth <T>(T low, Diff <T> width)
 {
     return(IntervalFactory.CreateLowWidth(low, width, null));
 }