public void WhenSetParameterNullThenNotThrow() { var dateType = new DateType(); Assert.That(() => dateType.SetParameterValues(null), Throws.Nothing); }
public void WhenSetParameterThenDefaultValueIsParameterValue() { var dateType = new DateType(); dateType.SetParameterValues(new Dictionary<string, string>{{DateType.BaseValueParameterName, "0001/01/01"}}); dateType.DefaultValue.Should().Be(DateTime.MinValue); }
public void WhenSetParameterThenDefaultValueIsParameterValue() { var dateType = new DateType(); dateType.SetParameterValues(new Dictionary<string, string>{{DateType.BaseValueParameterName, "0001/01/01"}}); Assert.That(dateType.DefaultValue, Is.EqualTo(DateTime.MinValue)); }