public void GetParameterReturnsParameterIfValuePresent(NameValueParameterViewModel sut) { var expected = Maybe.ToMaybe <NameValueParameter>(new NameValueParameter(sut.Name, sut.Value)); var actual = sut.GetParameter(); Assert.Equal(expected, actual); }
public void GetParameterReturnsEmptyIfNoValueIsPresent(NameValueParameterViewModel sut) { sut.Value = string.Empty; var actual = sut.GetParameter(); Assert.Equal(Maybe.Empty <IParameter>(), actual); }