public void OutputPostBuilder_WithBothNullTemperatures_Throws() { var builder = new OutputPostBuilder().SetDate(DateTime.Today); Assert.Throws <ArgumentNullException>(() => { builder.SetTemperatures(null, null); }); }
public void OutputPostBuilder_WithReversedTemperatures_Throws() { var builder = new OutputPostBuilder().SetDate(DateTime.Today); Assert.Throws <ArgumentOutOfRangeException>(() => { builder.SetTemperatures(15, 10); }); }