示例#1
0
        public void OutputPostBuilder_WithBothNullTemperatures_Throws()
        {
            var builder = new OutputPostBuilder().SetDate(DateTime.Today);

            Assert.Throws <ArgumentNullException>(() =>
            {
                builder.SetTemperatures(null, null);
            });
        }
示例#2
0
        public void OutputPostBuilder_WithReversedTemperatures_Throws()
        {
            var builder = new OutputPostBuilder().SetDate(DateTime.Today);

            Assert.Throws <ArgumentOutOfRangeException>(() =>
            {
                builder.SetTemperatures(15, 10);
            });
        }